Friday, 16 November 2012

Get Number and prints it's Table.


#include <iostream>
using namespace std;
int main()
{
int num;
cout << "Enter Number for the Table: ";
cin >> num;
for (int i=1;i<=10;i++)
cout << num << "*" << i << "=" << num*i <<endl;
return 0;
}

No comments:

Post a Comment