#include<stdio.h>
#include<stdlib.h>
int main()
{
int i;
int total=0;
printf("求和:");
for (i = 4;i<=100;i+=3)
{
printf("%d",i);
if (i!=100) printf("+");
total+=i;
};
printf("=%d\n",total);
system("pause");
return 0;
}
文章评论