Kat H.

asked • 04/12/21

Int Range. Read in a decimal value. Print out the two integers it is between, smaller value first, with exactly one space in between them.

Read in a decimal value. Print out the two integers it is between, smaller value first, with exactly one space in between them. If it is an integer value already, your program should print out the integer twice.

Hint: ceiling and floor functions are the tools you need.


Code:


#include <iostream>


Don't forget math library!!!


using namespace std;


int main()

{

//YOUR_CODE

}

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.