Answer to Question #225888 in C++ for Ulando

Question #225888

Write a program which produces a simple multiplication table of the following format for integer in the range 1to 9:

1*1=1

1*2=2

•••

9*9=81


1
Expert's answer
2021-08-16T14:52:26-0400
using namespace std;
#include <stdio.h>

//Multiplication Table

main(void)
{
	int m,n;
	cout<<"\nMultiplication Table"<<"\n\t";
	for(n=1;n<11;n++)
	{
		for(m=1;m<11;m++)	cout<<setw(5)<<m*n;
		cout<<endl<<"\t";
	}
}

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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS