a problem in my program in pascal
- From: gilevgi@xxxxxxxxx
- Date: 11 Oct 2006 05:23:53 -0700
I want to write the pattern " for i:=1 to a[i] do" n times (n is
variable), that is,
for b[1]:=1 to a[1] do
for b[2]:=1 to a[2] do
for b[3]:=1 to a[3] do
for b[4]:=1 to a[4] do
.........
..........
.........
for b[n]:=1 to a[n] do
something here.
in this writing n is a variable. therefore I can not write what i want.
can you say how can i write the above structure using "repeat-until" or
"while" patterns?
thanks in advance.
.
- Follow-Ups:
- Re: a problem in my program in pascal
- From: Tom de Neef
- Re: a problem in my program in pascal
- From: Maarten Wiltink
- Re: a problem in my program in pascal
- From: neworld
- Re: a problem in my program in pascal
- From: Dodgy
- Re: a problem in my program in pascal
- Prev by Date: Re: Interface Question
- Next by Date: Re: Interface Question
- Previous by thread: ActiveX
- Next by thread: Re: a problem in my program in pascal
- Index(es):