index = 1
while index <= 5
puts index
index +=1
end
for index in 0..5
puts index
end
5.times do |index|
puts index
end
my_array = [25,14,3,6,45,19]
for my_array in my_array
puts my_array
end
my_array.each do |arr|
puts arr
end
while [condition]
do something
end
num = 0
while num < 2 do
print("num = ", num)
end
print("End")