master_num = 5ar = [1,1] master_num.times do ar << ar[-2] + ar[-1]end p arp ar.inject(&:*)
Standard input is empty
[1, 1, 2, 3, 5, 8, 13] 3120
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!