HOW MAKE A TABLE IN CPP USING FOR LOOP
//TRY KARO
#include <iostream>
#include<conio.h>
using namespace std;
int
main ()
{
long int n;
cout << " you don't the table of 6836586483658 just enter your number " <<
endl;
cin >> n;
for (long int i = 1; i <= 10; ++i)
{
cout << n << "*" << i << "=" << n * i << endl;
}
cout << "Any othe kind you want to know just enter a number " << endl;
cin>>n;
for (long int i = 1; i <= 10; ++i)
{
cout << n << "*" << i << "=" << n * i << endl;
}
getch();
return 0;
}
Comments
Post a Comment