Problem 2806 · Easy

Account Balance After Rounded Purchase

Round a purchase to the nearest multiple of 10, ties going up, and return the remaining balance from 100 dollars.

Open the interactive visualisation