Sunday, 25 September 2016

program to find table of any number


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

void main()
{
clrscr();
long int a,b,c,d,e,f,g,h,i,j;
cout<<" enter any number ";
cin>>a;
b=2*a;
c=3*a;
d=4*a;
e=5*a;
f=6*a;
g=7*a;
h=8*a;
i=9*a;
j=10*a;

cout<<"\n""the table(upto 10) is as follows :";
cout<<"\n"<<a;
cout<<"\n"<<b;
cout<<"\n"<<c;
cout<<"\n"<<d;
cout<<"\n"<<e;
cout<<"\n"<<f;
cout<<"\n"<<g;
cout<<"\n"<<h;
cout<<"\n"<<i;
cout<<"\n"<<j;

getch();
}

No comments:

Post a Comment