1. Prompt the user for first number 2. Prompt the user for second number. 3. Determine the larger of the two numbers (hint: need conditional statement to compare and determine which is larger) 4. Utilizing a while loop (for each conditional) print the numbers in descending order 5. Loop stops after printing the smaller number Ex: If the integers are 45 and 40 The output will be: 45 44 43 42 41 40
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
1. Prompt the user for first number
2. Prompt the user for second number.
3. Determine the larger of the two numbers (hint: need conditional statement to compare and determine
which is larger)
4. Utilizing a while loop (for each conditional) print the numbers in descending order
5. Loop stops after printing the smaller number
Ex: If the integers are 45 and 40
The output will be:
45
44
43
42
41
40
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images