First number needs to be rounded to nearest second number. There are many ways of doing this, but whats the best and shortest algorithm? Anyone up for a challenge :-)
For input n:
n
(n + 50) / 100 * 100
using integer division.
Note that many languages/libraries already have functions to do this.