Pages

Friday 18 March 2011

PROGRAM TO PRINT TABLE

DESCRIPTION-:This program print the table of the number entered by the user.
PROGRAM-:
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int i,n;
cout<<"Enter to print table of given no";
cin>>n;
cout<<"the table of given number is"<<"\n";
for(i=1;i<=10;i++)
cout<<"\t\t"<<n<<"*"<<i<<"="<<n*i<<"\n";
getch();
}

0 comments:

Post a Comment

 
Copyright (c) 2010 Concepts Of C++. Design by WPThemes Expert

Blogger Templates and RegistryBooster.