Robert Klemme wrote in post #1126613:
> On Wed, Nov 6, 2013 at 5:24 PM, Rafael M. <lists / ruby-forum.com> wrote:
>> num2 = 1
>> puts total
>>
>> is there any way to have the total value?
>> is this a good code or there is a clever way to write it?
>
> I think the code is OK - except your looping condition. It does not
> match the problem description.
>
> Kind regards
>
> robert

Yes I expressed myself bad
the problem was really to loop through 4 million numbers of fibonacci
and if the current number was even you should add to the total,
the interviewer checked my pseudo code and found it correct

thanks for the replies

-- 
Posted via http://www.ruby-forum.com/.