Tables Generated in Cpp
Tables Generated with the help of for loop upto 10 . one number are being fixed and second number will increment every time .number is num and increment i are multiple are result(num * i) and print it by this it Form a Table.

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int num;
cout<<"Enter a Table Number : ";
cin>>num;
for(int i=1;i<=10;i++)
{
cout<<"\n"<<num<<" * "<<i<<" = "<<num*i;
}
getch();
}
Tables In CPP
Tables In CPP

 

(Visited 137 times, 1 visits today)
Share with Friends :
Written by: