Quote:
Originally Posted by Bilal Pro
I didn't understand that 
|
Well, your first mistake was trying to divide two integers (called integer division) which does not work like it would on a calculator. You have to make them floating point values before you can divide them.
Also, as he mentioned, you have to check for the case where you would be dividing by zero which is not allowed.
__________________