Answered You can hire a professional tutor to get the answer.

QUESTION

code a program to read a floating point value from standard input, then output the largest integer smaller than or equal to this value; the nearest

  1. code a program to read a floating point value from standard input, then output
  2. the largest integer smaller than or equal to this value;
  3. the nearest integer to this value, with halfway values rounded away from zero;
  4. the smallest integer larger than or equal to this value
  5. The output integers should be separated by a space character and followed by a newline character.
  6. The output values should not have any trailing zeros: e.g. "2" not "2.0".
  7. Sample input: 

3.1415

  1. Corresponding output: 

3 3 4

programming in c (not c++)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question