I just started trying to have a gas law code for chemistry today. I don't really understand the syntax of TI basic. It will run after the first If statement. Even if the numbers entered only pertains to the first if statement, it will still have a syntax error immediately after it calculates the answer for the first statement. Thanks!
Input "Temp(k):",T
Input "Pressure(atm):",P
Input "Volume(L):",V
Input "mol:",N
If T=0
Then
(P*V)/(N*0.0821)→T
Disp "Temp(k):",T
If P→0
Then
(N*0.0821*T)/V→P
Disp "Pressure(atm)":,P
If V→0
Then
(N*0.0821*T)/P→V
Disp "Volume(L):",V
If N→0
Then
(P*V)/(0.0821*T)→N
Disp "mol:",N