Chapter 2: Primitive Data Types and Operations

System.out.println("Negative input");// braces may be omitted If radius >= 0 is true, area is computed and displayed; if it is false, the message “Negative input” is printed. Using the if … else statement, you can rewrite the following code for determining whether a number is even or odd, as follows: ................
................