progs/catastrophic.rb
changeset 420 25bc57b32efa
parent 411 1aec0e1fda86
child 474 4bdf0dedd708
equal deleted inserted replaced
419:4110ab35e5d8 420:25bc57b32efa
     1 # provided by Daniel Baldwin
     1 # example provided by Daniel Baldwin
     2 
     2 
     3 nums = (1..1000)
     3 nums = (1..1000)
     4 
     4 
     5 #iterate through the nums 1-100
     5 #iterate through the nums 1-100
     6 nums.each do |i|
     6 nums.each do |i|