Monday, 30 March 2015

How to find out table of any number in C++


To Find Table Of Any Number:

#include<iostream.h>#include<conio.h>void main(){int num,n;cout<<"enter number to find its multiplication table ";cin>>num;
for(n=1;n<=10;n++){cout<<num<<"*"<<n<<"="<<num*n<<endl;}getch();

No comments: