Question
Write a program that displays the multiplication table of a given size. First, your program should ask the user about the size (height and weight
Write a program that displays the multiplication table of a given size. First, your program should ask the user about the size (height and weight are equal, so one number should be enough). If the size is greater than 20, the program should print the message: "Matrix too big." Then it should allocate a matrix and fill this matrix with appropriate values (remember: the element of [0][0] should store the multiplication result of 1 and 1). Then the program should print the multiplication table, 4 characters per cell. All memory must be freed at the end.
C++ use
example
input : 3
output:
1 2 3
1 1 2 3
2 2 4 6
3 3 6 9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started