[此贴子已经被作者于2017-6-13 11:36编辑过]
[此贴子已经被作者于2017-6-13 11:31编辑过]
#include<stdio.h> int main(){ int i,sum; for( i = 0, sum = 0; 100 > i; i += 2 ){ if((i%10)==4||i/10 ==4){ sum += i; printf("%2d ", i); } } printf("\n%d", sum); return 0; }