Prompt X
While X≠int(X
Prompt X
End
Also, how can I have it so only integers are allowed to be entered into prompts and inputs?
Repeat X=int(X
Prompt X
End
This will keep on doing prompt until X is integer. You can add stuff like a message to tell you to only add integers if a non integer value is inputted, or ClrHome to clear the screen every time it asks again (so your screen doesnt get flooded with 'X?')
]]>2. Depends on the calculator. On the 85, you can't force it to accept only integers (you either tell it to accept numbers or strings; for the former, it'll evaluate it as an expression and 'crash' if you give it a bad input), though the later calculators probably allow you to be more strict.
]]>