Wednesday 30 January 2013

table of given number in c++

/PROG 33
#include<iostream.h>
#include<conio.h>
void main()
{
int table,length,c;
cout<<"enter table"<<endl;
cin>>table;
cout<<"enter length"<<endl;
cin>>length;
for(c=1;c<=length;c++)
cout<<table<<"*"<<c<<"="<<table*c<<endl;
getch();
}

0 comments:

Post a Comment