Question: Write a java code to ask the user for a number . Then according to the entered value, if the is even then output =

Write a java code to ask the user for a number . Then according to the entered value, if the is even then output = 2.5, and output = 4 if the is odd.

send me a pic of stdin output please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!