Quote Originally Posted by VictorN View Post
I wonder why you check the value of z to be zero after if has been used in
                float t = ( y / z );
Why not before it?

Debug it and you will see!
You are absolutely right, very silly of me (and a little embarressed lol)

What is the best way to debug in code::blocks?