Chapter 2: Problem 5
Write an if/then/else primitive to do each of the following operations: a. Compute and display the value \(x \div y\) if the value of \(y\) is not 0 . If \(y\) does have the value 0 , then display the message 'Unable to perform the division'. b. Compute the area and circumference of a circle given the radius \(r\) if the radius is greater than or equal to \(1.0\); otherwise, you should compute only the circumference.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.