So I need a program in C that displays a table with four row
So I need a program in C++ that displays a table with four rows and five columns. first column should have the numbers 1 to 4 while the next columns should display the result of mulitplying the number in the first column by the numbers 2 through five.
This one is really confusing to me in figuring out what it\'s asking.
Solution
#include <iostream>
using namespace std;
int main()
{
for(int i=1;i<=4;i++)
{
cout<<i;
for(int j=2;j<=5;j++)
{
cout<<\' \'<<i*j;
}
cout<<endl;
}
return 0;
}
