Answer to Question #297911 in C++ for Rain Capisonda

Question #297911

Write a C++ program using a nested for loop to create multiplication table.






sample Output:

1 2 3 4 5 6 7 8 9 10

6

7

8

9

10


1
Expert's answer
2022-02-15T09:32:09-0500


#include <iostream>
#include <iomanip>


using namespace std;


int main()
{


	cout<<"Multiplication table"<<endl;
	for(int i=1; i<=10; i++){
		for(int j=1; j<=10; j++){
			cout<<"\t"<<i*j;
		}
		cout<<"\n";
	}


	system("pause");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment