fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b;
  5. for ( a=1; a<= 9;a++) {
  6. for (b= 1; b <= 9;b++) {
  7. printf("%d", a*b);
  8. }
  9. printf(" %dの段\n",a);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5304KB
stdin
1
3
stdout
123456789 1の段
24681012141618 2の段
369121518212427 3の段
4812162024283236 4の段
51015202530354045 5の段
61218243036424854 6の段
71421283542495663 7の段
81624324048566472 8の段
91827364554637281 9の段