So as my first "own Program" to get started i am trying to write a calculator for the Phythagoras theoream but somtehing seems to be wrong with my calculating method ,it does not call the if`s even when they should be true.
I used "avorher" and so on to see whether i am given the specific Data and want it to get the remaining numbers then.However even if i give the method numbers which aren`t 0 it won`t call the if.Maybe i just get the syntax wrong ,i want it to return true if both statements given are false.
I use "done" or "fertig" to check whether it calls the if.
I would really appreciate some help
[list][/list]
I used "avorher" and so on to see whether i am given the specific Data and want it to get the remaining numbers then.However even if i give the method numbers which aren`t 0 it won`t call the if.Maybe i just get the syntax wrong ,i want it to return true if both statements given are false.
I use "done" or "fertig" to check whether it calls the if.
I would really appreciate some help
[list][/list]