C++ Programs & Stuffz

Nothing like anything!!!

Please Click on ADS!!

Please Click on the above ads given by GOOGLE , so that I can maintain my blog!!

Tuesday, August 31, 2010

Print the multiplication table of a given number

//pgm to print the multiplication table of a given number
#include<iostream.h>
#include<conio.h>
void main()
{
    int i,n;
    clrscr();
    cout<<"enter the value of the integer";
    cin>>n;
    for(i=1;i<=10;i++)
    {
        cout<<i<<"*"<<n<<"="<<n*i<<endl;
    }
    getch();
}

1 comments:

C++ program to Print Table of any Number

Print table of any number in c++ is depend of general concept of generate table of any number, we can multiply any number with 1 to 10.
 

Post a Comment

free counters