This program should print what percent 3 is of 8 — that is 37.5. But it prints 37: the fractional part is lost.
37.5
37
Find the bug and fix it. Keep the same variables; change only what is needed so the result keeps its fractional part.