-Here we find the mathematical table of the given integer number.
program:
#include< iostream>
#include< string.h>
int main()
{
int num,i;
cout<<"Enter number"<< endl;
cin>>num;
//table
cout<<"Table of "<< num<<"is"< endl;
for(i=1;i<=10;i++)
{
cout<< num<<" * "<< i<<" = "<< num*i<< endl;
}
}
Enter number
3
Table of 3 is
3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
3 * 5 = 15
3 * 6 = 18
3 * 7 = 21
3 * 8 = 24
3 * 9 = 27
3 * 10 = 30