Advertisement
Nabil-Ahmed

Untitled

Jul 5th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. // display the multiplication table of a given integer//
  2. #include <stdio.h>
  3. int main()
  4. {
  5.     int n, i;
  6.  
  7.     printf("Enter an integer: ");
  8.  
  9.     scanf("%d", &n);
  10.  
  11.     for(i=1; i<=10; ++i)
  12.     {
  13.         printf("%d * %d = %d \n", n, i, n*i);
  14.     }
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement