Codepadma
Play with Codes
Wednesday, August 28, 2013
C++ Program to find the multiplication table of any number
#include<iostream>
using namespace std;
int main(){
int n,i,j;
cout<<"Enter any number:";
cin>>n;
for(i=1;i<11;i++){
cout<<n<<" * "<<i<<" = "<<(n*i)<<endl;
}
return 0;
}
Output:-
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Ads Inside Post
No comments:
Post a Comment