calculates pythagoras, not much else to say about the program.
v1.1: fixed calculation of pythagoras.