Re: Programming Challenge


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

Re: Programming Challenge



I agree. Once you set the dimension of the list as 60, each value on the
list gets overwritten, so if they're all 0 to begin with or not doesn't
really matter. It's like a saftey feature for people with no confidence
that the calc won't lose it's place.

-Joseph

 Have A
  :-)
Nice Day

Gabriel Chênevert wrote:
> 
> Couldn't we just write
> 
> 60 -> dim(L1)
> For(X,1,60)
> int(rand*60)+1 -> L1(X)
> end
> 
> ?
> 
> >60 -> dim(L1
> >Fill(0,L1
> >For(X,1,60)
> >Lbl 1
> >int(rand*60)+1->Y
> >if L1(X) = 0
> >then
> >Y->L1(X)
> >else
> >Goto 1
> >end
> >end
> 
>  -= Gabriel Chênevert =-
>   gabrielc@yeshua.co.uk


References: