[Tutor] infinite while loop
Dennis Lee Bieber
wlfraed at ix.netcom.com
Fri Oct 1 14:48:22 EDT 2021
On Fri, 1 Oct 2021 20:23:24 +0200, <marcus.luetolf at bluewin.ch> declaimed
the following:
>
>Where is my mistake ?
>
>
>
>>balance = 1000
> >previousBalance = balance
>
balance never changes, so you are setting previousBalance back to +1000
each time the loop processes.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed at ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
More information about the Tutor
mailing list