Feb 3, 2007

C++ Program to generate table of any given number

C++ Program to generate table of any given number. This program accepts a input from the user and generate a table of given number.

main()
{
clrscr();
int num;
cout <<"enter any number";
cin >> num;
for (int i=1;i<=10;i++)
{
cout << num * i <<endl;
}
getch();
}

No comments:

Post a Comment

Infolinks In Text Ads

Total Pageviews

Powered by Blogger.

Dont Forget To Follow Us

Blog Archive