Friday 13 September 2013

How to implement Frist Program in Ruby

                                      Programming

irb -> Interactive Ruby
Interactive means you type you computer it will immediately attempt to process
irb(main):001:0>
001 -> show line no I.e 1
0-> show depth I.e 0
irb(main):001:0>1+1
=>2
You performance all arithmetic (Mathematical operations) operation
Like: 100*3,146-899,464/899
Ruby is a special bcoz it like a neutral languages
irb(main):001:0> 100.times do print "Hello Ruby" end
Output:
It print 100 times Hello Ruby

No comments:

Post a Comment