Tuesday, 7 February 2017

Simple Multiplication table in C++

Tags

//Multiplication table in C++ and understand concept of for loop.


#include<iostream.h>
#include<conio.h>
void main()
{
int n,i;

cout<<"\n\t\ This program prints multiplication table:"<<"\n";
cout<<"Enter the value";
cin>>n;
for(i=1;i<=10;i++)
{
cout<<n;
cout<<"*";
cout<<i;
cout<<"=";
cout<<n*i;
cout<<"\n";

}
getch();
}