I am trying to get a program to calculate the side of a triangle. I know this is a simple code, im a first year student. So bare with me

http://rchevys.com/ffxi/underRATEDGames/test.txt

For some reason, when it gets to the output for the calculation it just puts 0 instead of the value it should be desplaying. what am i doing wrong here?