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