Program # 7: Table of Number entered
//Program to display the table of given number(Level - Medium)
#include <iostream.h> #include <conio.h>
void main ()
{
clrscr();
int sum, counter
, n;
cout<<"Enter the number
of table = ";
cin >> n;
counter=1;
in: //Label
sum = n*counter;
cout<<n<<" *
"<<counter<<" = "<<sum<<endl;
counter = counter+1;
if
(counter<=10)
goto in;
getch ();
}
0 Comments