Sunday, December 27, 2009

STARTING OFF IN RUBY

MY FIRST RUBY PROGRAM !

Dabbling in python and its variants I came to try ruby ! The syntax is very similar to python.

Fig1. Ruby version 1.8.7

My first program was straight from the ruby website,

Fig2. Seen on Ruby website

The output was as desired !

Fig3. I love Ruby !


2 comments:

Luke Dunn said...

Ruby makes OO beautifully straightforward !

Arkapravo said...

Yeah ..... it it more elegant than Python