0 votes
in Ruby by
Explain for loop in Ruby.

1 Answer

0 votes
by

Ruby for loop iterates over a specific range of numbers. Hence, for loop is used if a program has fixed number of itrerations.

Ruby for loop will execute once for each element in expression.

Related questions

0 votes
0 votes
0 votes
asked Nov 15, 2021 in Ruby by Robin
0 votes
0 votes
0 votes
asked Nov 14, 2021 in Ruby by sharadyadav1986
...