Write a Ruby program to print 34 upto 41.
34.upto 42 do |x| puts "#{x}" end
Output:
34 35 36 37 38 39 40 41 42
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer