PGhosh

Table

Mar 13th, 2014
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int i,j,n=1,value;
  6.     printf("Please enter the number which you want to tablize: ");
  7.     scanf("%d", &i);
  8.     printf("Enter the digit where you want end your table: ");
  9.     scanf("%d", &j);
  10.     while(n<=j){
  11.         value=i*n;
  12.         printf("%d x %d=%d\n", i,n,value);
  13.         n++;
  14.     }
  15.     return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment