愛因斯坦走臺階:求滿足條件的最小臺階數是多少?

  • 作者:由 匿名使用者 發表于 書法
  • 2021-11-01

愛因斯坦走臺階:求滿足條件的最小臺階數是多少? 匿名使用者 1級 2006-07-22 回答

#includ “iostream”

using namespace std;

main()

{

long int x;

for (x=0;x<=100000;x++)

{

if (x%2==1 && x%3==2 && x%4==3 && x%5==4 && x%6==5 && x%7==0)

}

cout<

評論

0

0

載入更多

愛因斯坦走臺階:求滿足條件的最小臺階數是多少? 鬼腳七 1級 2006-07-21 回答

using system;

namespace welcome

{

class class1

{

static void main(string[] args)

{

int x;

for(x=7;x<200;x++)

if(x%2==1 && x%3==2 && x%4==3 && x%5==4 && x%6==5 && x%7==0)

console。writeline(“{0}”,x);

}

}

}

Top