Advertisement
yoyo106

While loop multiplication

Apr 16th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int n=1;
  7.     printf("N\t10*N\t100*N\t1000*N\n");
  8.     while (n<=10)
  9.     {
  10.     printf("%d\t%d\t\%d\t%d\n",n,10*n,100*n,1000*n);
  11.     n++;
  12.     }
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement