Question: Q Java 3. Suppose number is a variable of type int. Write an if-else statement that outputs the word Positive if the value of the
Q Java
3. Suppose number is a variable of type int. Write an if-else statement that outputs the word "Positive" if the value of the variable number is greater than 0 and outputs the words "Not positive" if the value of number is less than or equal to 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
