DESCRIPTION-:This program print the table of the number entered by the user.
PROGRAM-:
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int i,n;
cout<<"Enter to print table of given no";
cin>>n;
cout<<"the table of given number is"<<"\n";
for(i=1;i<=10;i++)
cout<<"\t\t"<<n<<"*"<<i<<"="<<n*i<<"\n";
getch();
}
PROGRAM-:
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int i,n;
cout<<"Enter to print table of given no";
cin>>n;
cout<<"the table of given number is"<<"\n";
for(i=1;i<=10;i++)
cout<<"\t\t"<<n<<"*"<<i<<"="<<n*i<<"\n";
getch();
}
0 comments:
Post a Comment