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 0.01s 5320KB
stdin
Standard input is empty
stdout
1の段:10293169931の段:10293169951の段:10293169981の段:10293170021の段:10293170071の段:10293170131の段:10293170201の段:1029317028