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;
}
}
0 comments: