Yes, but we have to do it in a loop in a function.

So it should be:

a=[1,-5,3,6]

def anzahl (a)

and here i need the loop whicht only counts the positive numbers.







how can i do this?Would be nice to help me :)

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