Welcome to The World of I.T
Sunday, December 27, 2015
PROGRAMMING.
TABLE OF ANY NUMBER:
#include<iostream>
using namespace std;
int main()
{
int i,num;
cout<<"Enter the number for which You want to print the table:";
cin>>num;
for (i=1;i<=10;i++)
cout<<num<<" "<<"*"<<" "<<i<<"="<<num*i<<"\n";
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment