fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int n,i;
  6. printf("input n:");
  7. scanf("%d",&n);
  8. for(i=1;i<=n;i++)
  9. {
  10. printf("1*%d=%d ",i,1*i);
  11. }
  12. for(i=1;i<=n;i++)
  13. {
  14. printf("2*%d=%d ",i,2*i);
  15. }
  16. for(i=1;i<=n;i++)
  17. {
  18. printf("3*%d=%d ",i,3*i);
  19. }
  20. for(i=1;i<=n;i++)
  21. {
  22. printf("4*%d=%d ",i,4*i);
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0.01s 5284KB
stdin
9
stdout
input n:1*1=1 1*2=2 1*3=3 1*4=4 1*5=5 1*6=6 1*7=7 1*8=8 1*9=9 2*1=2 2*2=4 2*3=6 2*4=8 2*5=10 2*6=12 2*7=14 2*8=16 2*9=18 3*1=3 3*2=6 3*3=9 3*4=12 3*5=15 3*6=18 3*7=21 3*8=24 3*9=27 4*1=4 4*2=8 4*3=12 4*4=16 4*5=20 4*6=24 4*7=28 4*8=32 4*9=36