题目要求从1加到100的和
#include<stdio.h>
main()
{
int a,b=0;
for(a=1;b<=100;a++)
b+=a;
}
printf("%d\n",b);
应该是啊a<=100
点赞
扫一扫分享朋友圈
二维码
分享
你确定要删除这个问题吗?