#include<stdio.h>
main()
{
int a,b,i,s=0;
for(i=0;i<100;i++)
{a=i/10;
b=i%10;
if(i%2==0 && (a==4 || b==4))
s=s+i;
}
printf("%d",s);
}
#include<stdio.h>
main()
{
int a,b,i,s=0;
for(i=0;i<100;i++)
{a=i/10;
b=i%10;
if(i%2==0 && (a==4 || b==4))
s=s+i;
}
printf("%d",s);
}
一、文字描述①输入两个整形sum和i;②设置一个整形累加变量sum赋初值为0;③设置
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M