QQ群:703568346
我来回答
使用道具 举报
#include <stdio.h> #include <stdlib.h> int main() { int a, b = 0; for(a = 1; a <= 123456; a++) if((a % 7) == 0 || (a % 10) == 7){ printf("%d\n",a); b += a; } printf("和:%d\n", b); system("pause"); return 0; }
zhuzhu81998 发表于 2016-12-8 01:55 没问题啊......................................
祁彬 发表于 2016-12-8 12:43 前面的7,14,。。。。。。怎么没了
小榛鼠 发表于 2016-12-9 00:32 窗口上下显示有上限,后面输出的把前面的覆盖了, 打横输出,把输出一个数回车一次改成输出n个数后才回 ...
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页