shortening a fraction

Pages: 12
because 2000 / 5 = 400
if you ouput a you should get 5 since 25 / 5 = 5

Then if you output again you should get
80 and 1 since 400 /5 = 80 and 5 / 5 = 1

Also did you even look at the code I provided earlier? It was pretty close to chervils. THough I think I am missing a while loop instead of that if statement I have.
Last edited on
TNX!!!
YEs,I did not see the Chervil's answer!!!
U are great!!!
Topic archived. No new replies allowed.
Pages: 12