Re: brain gymnastics
- Posted by simulat <simulat at INTERGATE.BC.CA> Jun 01, 2000
- 506 views
This program sure behaves strangely on my system. It should give divide by zero error at i /= i+1 but it doesn't - but it will if you remove the line following. Huh? Bye Martin ----- Original Message ----- From: Tor Gausen <tor.gausen at C2I.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, June 01, 2000 1:38 AM Subject: brain gymnastics > Check out this perfectly legal (promise!) Euphoria > program, what value do you suppose will be printed? > > integer i > > i = 1 > > i = -i > > i /= i+1 > > +i = +i > > i *= i-1 > > -i = -i > > ? i >