Q:

Write a Ruby program to print 34 upto 41

0

Write a Ruby program to print 34 upto 41.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

34.upto 42 do |x|
      puts "#{x}"
 end

Output:

34
35
36
37
38
39
40
41
42

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now