make table using for loop
-----------------------------------------------------
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "enter table number=";
cin >> a;
cout << "enter table limit=";
cin >> b;
for (int c = 0; c <= b; ++c)
{
cout << a << "x" << c << "=" << a * c << endl;
}
return 0;
}
------------------------------------------------------------------------------------

0 Comments