#includemain(){
intforprintf} 搞不懂,c刚入门谢谢各位了
遍历1~100的数,如果这个数除2的余数为1,就说明它为奇数,就把它加到sum中
int sum=0; for(k=1;k<=100;k++) { if(k%2==1) sum=sum+k; }