fork download
  1. #include <stdio.h>
  2. int func(int n){
  3. int i,l;
  4. for(i=1;i<=n;i++){
  5. l=n*i;
  6. printf("%d×%d=%d\n",n,i,l);
  7.  
  8. }
  9. }
  10. int main(void) {
  11. // your code goes here
  12. int n=9;
  13. printf("%dの段\n",n);
  14. func(n);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
9の段
9×1=9
9×2=18
9×3=27
9×4=36
9×5=45
9×6=54
9×7=63
9×8=72
9×9=81