#include <stdio.h>
#include <math.h>
int main() {
int input;
for (input = 0; input < 50; ++input) {
int rounded = (int)(round((float)input / 5) * 5);
printf("%d -> %d\n", input
, rounded
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBpbnB1dDsKICAgIAogICAgZm9yIChpbnB1dCA9IDA7IGlucHV0IDwgNTA7ICsraW5wdXQpIHsKICAgICAgICBpbnQgcm91bmRlZCA9IChpbnQpKHJvdW5kKChmbG9hdClpbnB1dCAvIDUpICogNSk7CiAgICAgICAgcHJpbnRmKCIlZCAtPiAlZFxuIiwgaW5wdXQsIHJvdW5kZWQpOwogICAgfQogICAgCiAgICByZXR1cm4gMDsKfQ==