# How to solve a equation with floor in it?

I tried to do everything I could, but I don't know what to do with that floor.

$58 = y\cdot\left[\frac{80}{y}\right]$

Where $[x]$ is floor function.

-

So, $\frac{58}y= \left[\frac{80}{y}\right]$ which is an integer
$\implies y$ must divide $58$
@10HeadLess, you iterate for the values of $y,$ such that $y\cdot \left[\frac{80}{y}\right]=58$ Clearly, $-58\le y \le 58$ Which programing language you follow? – lab bhattacharjee Jun 8 '13 at 13:41