progs/catastrophic.rb
changeset 423 e3acf2bf3895
parent 420 25bc57b32efa
child 474 4bdf0dedd708
equal deleted inserted replaced
422:5deefcc8cffa 423:e3acf2bf3895
     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|