We're glad you came by, but you might find what you're looking for elsewhere.
TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.
Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.
Date: 24 Feb 2022 12:07
Number of posts: 2
rss icon RSS: New posts
:randInt(1,5→A
:Lbl Z
:ClrHome
:Disp "WHAT NUMBER AM I
:Disp "THINKING OF?
:Disp "(1 TO 5)
:Prompt B
:If B=A
:Then
:Disp "CORRECT
:Else
:Goto Z
:End
Good program so far. So far, your program contains Memory Leaks.
On line 12, your Goto Z is inside the an If-Then check, and jumping to a label outside results in a memory leak.
I've taken the liberty to correct your code below:
:randInt(1,5→A
:ClrHome
:Disp "WHAT NUMBER AM I
:Disp "THINKING OF?
:Disp "(1 TO 5)
:Repeat A=B
:Prompt B
:End
:Disp "CORRECT
I've gotten rid of the Labels and changed it to a Repeat loop, which does the same thing of what you are wanting your program to do.
Hope this helps :3
Hewwo, my name is Achak Claw. I was formerly BioHazard.