愛因斯坦走臺階:求滿足條件的最小臺階數是多少?
- 2021-11-01
#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
載入更多
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);
}
}
}
上一篇:李世民的故事