comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Help with Nested FOR Loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Help with Nested FOR Loop [message #42045] Fri, 10 December 2004 12:44
coold is currently offline  coold
Messages: 8
Registered: December 2004
Junior Member
The following code gives me syntax error for the last two endfor
statements. I am trying to use the nested for loop to print the value
of x. I have tried &$ on the 6th and 7th while $ on 1 and 2.
Any help would be appreciated

1 for i = 0, 20 do begin
2 for j = 0, 20 do begin
3 for k = 0, 5 do b[0,k] = 0.5^2
4 funct_addnumbers, a,b,x ; where x is the result
5 print,x
6 endfor
7 endfor

Thanks.
coold
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Read_ASCII and 'invalid' ascii files
Next Topic: Re: Stretching an image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:07:09 PDT 2025

Total time taken to generate the page: 0.16209 seconds