Question: Write a Java program to ask the user to input a number from the keyboard. The output should indicate whether it is positive or negative,
Write a Java program to ask the user to input a number from the keyboard. The output should indicate whether it is positive or negative, a floating number or an integer, an even number or an odd number (Use IF...ELSE statements). The execution of the program should be
(Case 1) Please input a number: 35.6 35.6 is a positive, floating number. (Case 2) Please input a number: -28 -28 is a negative, even number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
