Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Using the for Loop : for « Statement « Ruby
Ruby
Statement
for
Using the for Loop
for
value in 1..10 puts
"This is iteration "
+ value.to_s end
Related examples in the same category
1.
general form of the for loop
2.
For each item in
3.
Nested for loop