Re: TIB: += function in TI Basic?


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

Re: TIB: += function in TI Basic?



---Jim Fisher <killando@epix.net> wrote:
>
> >The best and easiest way to do that i Ti-Basic is to use the 'For('
> >command.
> >
> >the syntax is
> >For(variable,start,end,increment)
> >
> >To accomlish what you want set 'start' to zero, call 'variable'
> >'total', and make 'increment' 'i'.
> >then use 'end' how you wish.
> 
> Rick,
> 
> That's not what I'm trying to do... basically, the program looks
something
> like this at the moment [I don't have it in front of me at the
moment]
> 
> :Input "Number of isotopes=",A
> :For(x,1,A,1)
> :Input "Percent=",B
> :Input "Mass=",C
> :D=(Be-2*C)
> :End
> 
> What I would like to do is have a running total of D, within the
loop --
> does TI Basic support nested loops?
> 
> 

By nested do you mean:

:For(J,1,2,1)
:...code...
:For(I,1,5,2)
:...code...
:End
:...code...
:End

If so then yes, if not please clarify what you want in nested loops.
_____________________________________________________________________
Sent by RocketMail. Get your free e-mail at http://www.rocketmail.com