Question: PP 3.4 Write a program that reads a floating point value (double) and prints the closest whole numbers less than and greater than that

PP 3.4 Write a program that reads a floating point value (double) and prints the closest whole numbers less than and greater than that value. For example, if the number is 28.466, the program would print 28 and 29.
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
