Wednesday, 19 October 2016

loop for a table of any no

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,n;
cout<<"enter the number whose table is to be print"<<"\n";
cin>>n;
for(int i=1;i<=10;i++)
{
cout<<"\n"<<i*n;
}
getch();
}

No comments:

Post a Comment