#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の段:7261638411の段:7261638431の段:7261638461の段:7261638501の段:7261638551の段:7261638611の段:7261638681の段:726163876
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!