The weird thing is that in college I typed-in and compiled the code using Turbo C++, and when I executed it I got totally different answers, and I kept getting different ones each time I executed the program. So I copied the code on a disk, took it home, and compiled it using microsoft visual c++ 6, this time I got the same answers above everytime I executed the program. Could the college computer somehow "messed up"? or was it the compiler?

Thank you

12-11-2001

Kuplex

Maybe this?

if (A<B+C && B<A+C && C<A+B)

maybe if you rewrote it as:

if ((A<(B+C)) && (B<(A+C)) && (C<(A+B)))

i dont knwo if that will change anything though, unless turbo C++ doesn't recognize an order of operations or something