fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int a,asum;
  5. for (a=1;a<9;a++)
  6. {
  7. asum=asum+a;
  8. printf("1の段:%3d",asum);
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
1の段:7261638411の段:7261638431の段:7261638461の段:7261638501の段:7261638551の段:7261638611の段:7261638681の段:726163876