Im trying to make a program for doing the Pythagorean theorem for my Ti Nspire. Yes I already know that it has something for this I just want to try making something so I can be better at my coding. It says there is a syntax error, and I was wondering if anyone could help me here is the code: Define pythagorean()= Prgm :local a,b,c,question :request "do you know c?",question :if question:=y Then : request "what is it?",c : request "length of leg you know?",a : Disp "unknown leg=",(a+c) : Disp "other leg=",a : Disp "hypotenuse=",c :else : request "leg a?",a : request "leg b?",b : Disp "leg 1=",a : disp "leg 2=",b : disp "hypotenuse",(a^(2)+b^(2)) :endif :EndPrgm
|