MS Rumi. Powered by Blogger.

Friday, 25 April 2014

Print Table From 2-20 in C++

By Unknown  |  03:38 No comments

Nested For Loop In C++

Write a program to print the product table of all numbers by for loop

#include<iostream.h>
void main ()
{
int num=1;
for(int i=2; i<=20;i++)
{
cout<<"Table Of "<<i<<endl;

for(int j=1; j<=10; j++)
{
cout<<i<<"X"<<j<<"="<<i*j<<endl;

}
cout<<endl;
}

}

OutPut


Author: Unknown

Hello, I am Author, thanks for visiting my blog. Bookmark this....

0 comments:

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

TOP