Display variable and string on same line (TI-Basic)

后端 未结 2 2069
你的背包
你的背包 2021-02-15 07:17

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         


        
2条回答
  •  梦如初夏
    2021-02-15 07:45

    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
    

提交回复
热议问题