A program to display the table of any number inputted by the user.

 

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
double product,a,b=1;

cout<<"The value of the number whoes table is to be printed is: ";
cin>>a;
cout<<endl;

do
{
product=a*b;
cout<<a<<"*"<<b<<"="<<product<<"\n";
b++;
}
while(b<=10);

getch();
}

 

 

< Back