How do i creat a program that convert a inputted decimal to the closest integer?

Aphyro

Member
Joined
Oct 16, 2017
Messages
5
Programming Experience
Beginner
I've been reading my schoolbook for an answer to how to creat this but there is nothing of it to explain how i should do to convert it.

The question in the book is.

Enter a decimal number: 11,534 the decimal number 11,534 is rounded to the integer 12

I'm going crazy over this because nothing i've been trying has worked.
 

Latest posts

Back
Top Bottom