爱因斯坦数学题

来源:互联网 发布:波谱 常见 数据 编辑:程序博客网 时间:2024/04/29 16:49
 1 #include <stdio.h>
  2 
  3 int main()
  4 {
  5     int i=1;
  6     while(!((i%2==1)&&(i%3==2)&&(i%5==4)&&(i%6==5)&&(i%7==0)))
  7     {
  8         ++i;
  9     }
 10     printf("Staris_number=%d\n", i);
 11     return 0;

 12 }

[root@localhost 37]# vim staris.c
[root@localhost 37]# gcc staris.c 
[root@localhost 37]# ./a.out 
Staris_number=119

0 0
原创粉丝点击