Advertisement
rorschack

c++ prac prog - 19

Aug 16th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3.  
  4. void main()
  5. {
  6.     clrscr();
  7.     unsigned short int n;
  8.     cout << "Enter a positive integer to print its multiplication table: ";
  9.     cin >> n;
  10.     cout << "\nMultiplication Table for " << n << " is,\n";
  11.     for (int i(1); i<=10; i++)
  12.         cout << "\t" << n << " X " << i << " = " << n*i << endl;
  13.     getch();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement