Q. We want to round off x, a float, to an int value, The correct way to do is
β
Correct Answer: (A)
y = (int)(x + 0.5)
You must be Logged in to update hint/solution