Contoh bahasa pemrograman ruby

Diposting oleh den_holic on Jumat, 08 Januari 2010

#!/usr/bin/ruby
presidents = ["Ford", "Carter", "Reagan", "Bush1", "Clinton", "Bush2"]
for ss in 0...presidents.length
 print ss, ": ", presidents[presidents.length - ss - 1], "\n";
end 

http://www.troubleshooters.com/codecorn/ruby/basictutorial.htm

{ 0 komentar... read them below or add one }