Re: goto, label


[Prev][Next][Index][Thread]

Re: goto, label



--
Daniel Moraseski
from Orlando
Ricardo Navarro wrote in message <4cd4f229.357746c7@aol.com>...
> Chris Wrote:
>>I am making a program. If I was to choose a random integer from 1 to 10
and
>>then use the goto command to go to that label, how would I do it?
>
>
>
>
>you could try:
>
>:rand->X
>:(X*9)->X
>:round(X,0)->X
>:(X+1)->X
>:If X=1
>:Then            don't need
>:Goto 1
>:End             don't need

you could just say If X=1:Goto 1

the TI-92 actually lets you add it onto "goto" as a string and then execute
it!
>
>then you do the same for all the other numbers you get...I'm sure there are
>many different ways to approach this, but this is how I would do it.


References: