+ 1
Print the nearest multiple of 5. In python
Suppose you have given a no. 33 and you have to find the nearest no. That is multiplier of 5
2 Answers
+ 2
Think about using the round() function to do this. Divide the number by 5, round it to zero decimal places, then multiply by 5. Done!
+ 5
Your attempt is needed
Hint : modulo(%) operator can be used to find remainder after division.