Control flow / Loops
"each" loop
"for-in" loop
"each_with_index" loop
"while" loop
"do-while" loop
"until" loop
"upto" loop
"step" loop
"times" loop
Infinite loop
sum10 =
0
(
1
.
.10
).
each
do
|v|
sum10 += v
end
# sum10 is 55
puts
"sum10 is
#{sum10}
"