Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cst199220528yWon't value reduce to 0 in the end since perfect is always false? There's no "break" in that loop
-
@cst1992 indeed. Theoretically it would never reqch 0 but most languages just truncate the comma part for integer divisions.
-
It will eventually yield division by zero if the language doesn't use Big Nums. Right?
A training exercise for people who won't push their code.
undefined