#include <stdio.h> int main(){ int a,asum;for (a=1;a<9;a++) { asum=asum+a; printf("1の段:%3d",asum); }return 0;}
Standard input is empty
1の段:10293169931の段:10293169951の段:10293169981の段:10293170021の段:10293170071の段:10293170131の段:10293170201の段:1029317028
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!