Project Euler

Andre Garzia andre at andregarzia.com
Tue Feb 23 12:10:55 EST 2010


Ho Ho Ho,

I am building a little stack with the solutions as buttons. There are
problems 1, 2, 6 (with comments showing it was from Mark), I am working on 5
now...

:D

will post it to RevOnLine

:D


On Tue, Feb 23, 2010 at 2:05 PM, Bob Sneidar <bobs at twft.com> wrote:

> I was just about to say the same thing! ;-) Mark, you should post your
> solution, and quick! Otherwise Andre is going to do it! (j/k)
>
> Bob
>
>
> On Feb 23, 2010, at 8:49 AM, Mark Schonewille wrote:
>
> > Andre,
> >
> > on mouseUp
> >     put "0,1" into mySequence
> >     put 0 into mySum
> >     repeat
> >          put the last item of mySequence into myCurrentNumber
> >          if myCurrentNumber < 4E6 then
> >               if myCurrentNumber mod 2 is 0 then add myCurrentNumber to
> mySum
> >               put myCurrentNumber & comma & (item 1 of mySequence +
> myCurrentNumber) into mySequence
> >          else exit repeat
> >     end repeat
> >     put mySum
> > end mouseUp
> >
> > --
> > Best regards,
> >
> > Mark Schonewille
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the Use-livecode mailing list