hi
i have a question..
An application of function floor ia rounding a value to the nearest integer. the statement y=floor(x+0.5); rounds the number x to the nearest integer and assigns the result to y. how can we write a program that reads several numbers and uses the preceeding statement to round each of these numbers to the nearest integer. for each number proceeded, print both the original number and the rounded number.
i have a question..
An application of function floor ia rounding a value to the nearest integer. the statement y=floor(x+0.5); rounds the number x to the nearest integer and assigns the result to y. how can we write a program that reads several numbers and uses the preceeding statement to round each of these numbers to the nearest integer. for each number proceeded, print both the original number and the rounded number.
Comment