Answer Posted / Jay Prakash
The for loop in Ruby iterates over a collection (such as an array or range). The basic structure is as follows:n```rubynfor variable in collectionn # code block executed for each iterationnend``
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers