Saturday, 1 October 2011

C/C++ Programs

Table of Any Digit
------------------- 

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int tab,i;
cout<<"\nenter table";
cin>>tab;
for(i=1;i<=10;i++)
{
cout<<tab<<"*"<<i<<"="<<tab*i;
cout<<"\n";
}
getch();
}

No comments:

Post a Comment