Question: I need to print the pattern with numbers from 1 to n. The constraints are between 1 and 500. User has to input an integer
I need to print the pattern with numbers from 1 to n.
The constraints are between 1 and 500.
User has to input an integer n.
Example:
input:3
output:
33333
32223
32123
32223
33333
I have not learned functions or arrays at this point in class but if you can help explain how to go about doing this, that would be very helpful.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
