I need to round of a number (the input is guaranteed to be an integer & is positive) to the next multiple of 5.
I tried this:
int round = ((grades[j] + 2)/5) * 5;
However, this rounds off the number to the nearest multiple of 5.
Eg: 67 is rounded off to 65, not 70.