Hey, I wrote some code that would do the law of sines and cosines for me and, when i try to run it, It says error syntax and when I press goto, it redirects me to the first prompt. (Prompt r)
Code:
Please help.
Code:
Disp "Sine or Cosine"
Disp "1.Sine"
Disp "2.Cosine"
Prompt r
If r=1
Then
Goto s
Else
If r=2
Then
Goto c
Else
Disp "you stupid"
Lbl c
Prompt A,a,b,c
Else
If X=a
Then
Disp sqrt(b^2-c^2-(2bc)cosA
If X=A
Then
Disp cos⁻¹((a^2-b^2-c^2)/(2bc)))
Else
Disp "you stupid"
Lbl s
Prompt A,B,a,b,
If X=a
Then
Disp (bsin(A))/(sin(B))
Else
If X=A
Then
Disp sin((asinB)/b)
Else
Disp "you stupid"
Please help.