[C] 12月23日思考题 →→→→→进入此内容的聊天室

来自 , 2020-02-02, 写在 C, 查看 111 次.
URL http://www.code666.cn/view/f55cadb9
  1. #include<stdio.h>
  2. int main() {
  3.   int a, b, s = 0;
  4.   for (b = 2; b<= 100; b++) {
  5.     s = 0;
  6.     for (a = 1; a < b; a++)
  7.       if (b % a == 0)
  8.         s = s + a;
  9.     if (s == b)
  10.       printf("% d", b);
  11.   }
  12. }

回复 "12月23日思考题"

这儿你可以回复上面这条便签

captcha