69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
void main()
{
int sum = 0, five, two;
for (five = 0; 5*five <= 100; five++)
for (two = 0; 2*two <= 100 - 5*five; two++)
sum++;
printf("Sum is:%d\n", sum);
system("PAUSE");//加一句暂停
}
#include <stdio.h>
void main()
{
int sum = 0, five, two;
for (five = 0; 5*five <= 100; five++)
for (two = 0; 2*two <= 100 - 5*five; two++)
sum++;
printf("Sum is:%d\n", sum);
}