syntax error help

Kristian Nilssen knilssen at WEATHER3000.COM
Tue Mar 7 05:15:51 EST 2006


nothing wrong with that me thinks.

bernd.becker at METOFFICE.GOV.UK wrote:
> Initialize c=0 in the loop over r?
>
> On Mon, 2006-03-06 at 17:25, Kristian Nilssen wrote:
>
>> why do i get a syntax error on line 8?!? ...
>>
>> columns = 4
>> rows = 5
>> c = 0
>> r = 0
>> while(r < rows)
>>   while(c < columns)
>>     panelindex = r * columns + c
>>     myvar = panelindex * 6 + 1
>>     c = c + 1
>>   endwhile
>>   r = r + 1
>> endwhile
>>
>> 'quit'
>>
> --
> Bernd Becker   The Monthly Outlook
> Met Office  FitzRoy Road  Exeter   Devon EX1 3PB  United Kingdom
> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
> E-mail:bernd.becker at metoffice.gov.uk -  http://www.metoffice.gov.uk
>



More information about the gradsusr mailing list