Q27 Write a C program to round numbers.

Use this statement to round numbers

(int)(number < 0 ? (number – 0.5) : (number + 0.5))

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.