编辑代码

#include<stdio.h>
main()
{
int sum=0,i;
for(i=100;i<=200;i++)
{if(i%3==0&&i%5==0)
{sum=sum+i;
printf("%5d",i);}}
printf("sum=%d",sum);
}