#include <stdio.h>
int main()
{
int i,sum=0;
for (i = 0; i <= 1000; i++)
{
if (i % (2 * 3) == 0)
{
sum = sum + i;
}
}
printf("%d", sum);
return 0;
}
标签:include,return,int,sum,计算,printf,整除,main,1000 From: https://blog.51cto.com/u_16336886/8588886
#include <stdio.h>
int main()
{
int i,sum=0;
for (i = 0; i <= 1000; i++)
{
if (i % (2 * 3) == 0)
{
sum = sum + i;
}
}
printf("%d", sum);
return 0;
}
标签:include,return,int,sum,计算,printf,整除,main,1000 From: https://blog.51cto.com/u_16336886/8588886