Question: Exercise 7.6 Based on the formula y = x*x , write a C program that asks the user to enter an integer and then produces
Exercise 7.6
Based on the formula y = x*x, write a C program that asks the user to
enter an integer and then produces an output similar to this:
1 >
2 >>>>
3 >>>>>>>>>
4 >>>>>>>>>>>>>>>>
5 >>>>>>>>>>>>>>>>>>>>>>>>>
6 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The above example is for input = 6. So 6 is the max, while the minimum is 1. The size of the chart will depend on user's input, which is an integer.
The program must repeatedly perform the above tasks until the user entered a 0 (zero).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
