Chapter 4: Problem 32
Write the missing statements in the following program so that it prompts the
user to input two numbers. If one of the numbers is \(0,\) the program should
output a message indicating that both numbers must be nonzero. If the first
number is greater than the second number, it outputs the first number divided
by the second number; if the first number is less than the second number, it
outputs the second number divided by the first number; otherwise, it outputs
the product of the numbers.
#include
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.