Q:

Write a Ruby program to print the elements of a given array

0

 Write a Ruby program to print the elements of a given array.

All Answers

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

array1 = ["Ruby", 2.3, Time.now]
for array_element in array1
          puts array_element
end
Output:
Ruby
2.3
2017-12-28 06:01:53 +0000

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