Question: Please answrr using simple java (for beginner) Write a program that receives a number from the user (standard input) and prints two facts on standard
Please answrr using simple java (for beginner) 
Write a program that receives a number from the user (standard input) and prints two facts on standard output: the absolute value of the number, and the closest integer to the square root of this absolute value. Use methods from the Math class. Sample execution, where the user inputs the number 87.2 Please provide a number. 87.2 The absolute value of 87.2 is 87.2 The closest integer to the square root of the absolute value is 9 Sample execution, where the user inputs the number -156: Please provide a number. 156 The absolute value of -156.0 is 156.0 The closest integer to the square root of the absolute value is 12 Name your class DayFact
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
