#include
main()
{
int a,b,m,sum;
printf("请输入所求范围的终止数m:");
scanf("%d",&m);
sum=0;
for(a=1;a<=m;a++)
{
if(a%2==0)
{
b=a*a;
sum=sum+b;
}
}
printf("和为:%4d\n",sum);
}
程序设计基础