Question: Write a Java program that prompts the user for his/her favorite integer then calculates and prints the following so that it is true about the
Write a Java program that prompts the user for his/her favorite integer then calculates and prints the following so that it is true about the number entered. Note: I put them in strings for literals. If a set is in parenthesis chose one of the options. The \# represents their number. Also, only print out "I like the number 42 also!" if the number the user types in is 42 (and only 42 ). - "You entered \# as your number." - ("I like the number 42 also!" II Nothing) - ("Your number is even." II "Your number is odd.") - ("Your number is positive." || "Your number is negative." II "Your number is zero.")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
