Reducing rational numbers - code not working properly

Printable View