Project Euler

Brian Yennie briany at qldlearning.com
Tue Feb 23 12:09:57 EST 2010


Oooh, oooh!

In all seriousness, it would be fun if someone compiled a set of different correct solutions to these problems. What an incredible way of showing people's different coding styles in Rev.
(my solution to #2 after the break)

























put 0 into tot
put 1 into pre
put 2 into fib
repeat
   if (fib >= 4000000) then exit repeat
   if (fib mod 2 = 0) then add fib to tot
   put fib into tmp
   add pre to fib
   put tmp into pre
end repeat


More information about the use-livecode mailing list