Question: In JAVA please! Write a statement that reads an integer into userNum, and a second statement that prints userNum followed by a newline. Hint --
In JAVA please!
Write a statement that reads an integer into userNum, and a second statement that prints userNum followed by a newline. Hint -- Replace the ?s in the following code: userNum = ? System.out.println(?); Note: These activities may test code with different test values. This activity will perform three tests: the first with user input of 32, second with user input of 0, and third with user input of -1. See How to Use zyBooks.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
