Quantcast
Channel: E Notes » PROGRAMMING IN C++
Viewing all articles
Browse latest Browse all 10

Print Table

$
0
0
#include<iostream.h>
#include<conio.h>
int main()
{
 int i,n,r=0;
 cout<<"enter the value of table:";
 cin>>n;
 cout<<"table is:"<<endl;
 for(i=1;i<=10;i++) 
 {
 r=n*i;                
 cout<<n<<'*'<<i<<'='<<r<<endl;
}
 getch();
 return 0;
}


Viewing all articles
Browse latest Browse all 10

Trending Articles