c語言從1加到100(整數(shù))并輸出結(jié)果
qq_S路還很長_0
2017-10-30 11:39:44
TA貢獻(xiàn)257條經(jīng)驗(yàn) 獲得超93個(gè)贊
#include?<stdio.h> int?main(){ int?i=1,sum=0; for(i=1;i<=100;i++){ sum=sum+i; } printf("sum=%d\n",sum); return?0; }
舉報(bào)