Ruby for
#!/usr/bin/ruby -w
# -*- coding: UTF-8 -*-
for i in 1..5
print i," "
end
print "\n"
for i in 1...5
print i," "
end
#
#1 2 3 4 5
#1 2 3 4
#
#!/usr/bin/ruby -w
# -*- coding: UTF-8 -*-
for i in 1..5
print i," "
end
print "\n"
for i in 1...5
print i," "
end
#
#1 2 3 4 5
#1 2 3 4
#