Re: brain gymnastics

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu