Round the number to nearest ten

Java RecipesIn the round() function, a is the integer that represents the number being rounded off to. The expression a + 10 will round the number off to the nearest integer, which in this case is 11. So, the return statement will return 11, as opposed to the original 10.

## 0 Comments

Add Comment

Log in to add a comment