31
Mar

This should work….

chhandak@chhandak:~$ irb

irb(main):001:0> def multiply(val1, val2 )

irb(main):002:1> result = val1 * val2

irb(main):003:1> puts result

irb(main):004:1> end

=> nil

irb(main):005:0>

irb(main):006:0* multiply( 2, 10 )

20

=> nil

irb(main):007:0>

irb(main):007:0>

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Monday, March 31st, 2008 at 4:42 am and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment