Question: C++ Programming: Problem 1 Write a program that requests the user to enter an integer between -50 and +50. Your check that the entered value
C++ Programming:

Problem 1 Write a program that requests the user to enter an integer between -50 and +50. Your check that the entered value is within this range and repeatedly ask the user to enter it again if it is not. For positive numbers, print a pattern that has on the first line, '22' on the second line, "333' on the third line, and so on up to the value of the number entered. For negative numbers, print the pattern in the opposite direction, that is, with the largest number printed first down to 1. Repeat this process until the user enters 0. For example: program must Enter an integer from-50 to 50: 4 Enter an integer from-50 to 50: 4 Enter an integer from-50 to 50 0 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
