Write
a program to display the multiplication table of the accepted number.
#include<iostream.h>
void main()
{
int i,n;
cout
<< "Enter number ";
cin
>> n;
for(i=1;i<=12;i++)
cout << endl << n <<
"*" << i << "="
<< n*i ;
}
No comments:
Post a Comment