TI-BASIC (Round Two-and-a-Half) (More with Input)
The somewhat astute among us have noticed that in Round *, there was the following line of code:
Input "Guess:",G
And that I haven’t explained how that works.
The pretty astute among us have also noticed that when they run a program such as the following:
Input G
All that’s shown is a question mark, and it’s not very visually appealing.
The quite astute among us have already realized that the way to get rid of the ugly question mark, and replace it with something more attractive is to put the attractive message in quotes, follow it with a comma, and then tack the variable name to the end of it.
Those who are not feeling very astute should be please that the astute have shared their thoughts, and we’re all back on a level playing field.
Finally, the EXTREMELY astute people are saying to themselves “It is such a drag when there’s like four variables that the user has to put in, and I have to make four Input statements. Four! Can you imagine? Surely there’s an easier way.”
Meet Input’s big brother ‘Prompt’. (TI-BASIC is very family-oriented. Output is Disp’s big brother, Input is Prompt’s little brother, Else is If’s big broth–oh, we haven’t gotten there yet. Round three is coming.)
Prompt is great for math. Take the Pythagorean Theorem:
Prompt A,B A^2+B^2->D sqrt(D)->C Disp C Which will display: A=? B=? (The solution, which depends on the input)
So Prompt is just a quick and easy way of getting a bunch of variables inputted. Would I use it for games, or polished programs? No. Do I use it for quickly making a program that’ll do a mathematical formula? Always.

