Idk why there's an error, i am making a PV=nRT calculator. Please help. I'm new to ti-basic, i usually program in c#.
Code:
Code:
ClrHome
Input "What to solve for?", q
If q="p"
Then
Input "Please enter v", b
Prompt n,t
((n*8.314*t)/b)->p
Disp p
End
If q="v"
Then
Prompt p,n,t
((n*8.314*t)/p)->b
Disp b
End
If q="n"
Then
Input "Please enter v", b
Prompt p,t
((p*b)/(8.314*t))->n
Disp n
End
If q="t"
Then
Input "Please enter v", b
Prompt p,n
((p*b)/(n*8.314))->t
Disp t
End
If q="r"
Then
Disp "8.314"
End