JAVA PROGRAMMING Exercises 5

Exercise 2: 1. Write the java statement that assigns 1 to x if y is greater than 0. 2. Suppose that score is a variable of type double.

Part of the document

Exercise 2: 1. Write the java statement that assigns 1 to x if y is greater than 0. 2. Suppose that score is a variable of type double.