In most programming languages, you can mix and match strings with variables during output. However, I can\'t seem to find a good way to do so. Here is my code:
P
In ti-basic for the ti-83 the plus (+) is used to concatenate strings. Like this:
Disp "foo"+" "+"bar"
Will output:
"foo bar"
You must remember to convert numbers to strings using string()
though:
Disp "C=√("+string(c)+")"
Will output:
"C=√(34)"
Disp "C=√("+c+")"
(no string()
) will throw an error.
I know this is a little late, but it might help others as well. The Output( command would be used in this case. The home display is 8x16, so
Prompt A,B
√(A^2+B^2)->C
If iPart(C)≠C
Then
Disp "C = √(",C
Output(3,7,C
Else
Disp "C = ",C
End