哪里错了呀
#include "stdio.h"
int main()
{
int i,sum;
i=1,sum=0;
while(i<=100)
{
sum=sum+i;
i=i+1;
;
printf("sum=%d\n",sum);
return 0;
}
#include "stdio.h"
int main()
{
int i,sum;
i=1,sum=0;
while(i<=100)
{
sum=sum+i;
i=i+1;
;
printf("sum=%d\n",sum);
return 0;
}
2022-05-16
举报