Yurttas/PL/SL/ruby/F/02/07/00/m 03.rb

From ZCubes Wiki
Revision as of 23:51, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="ruby" line start="1" enclose="div"># # Copyright(C) 2008 # All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. # # Permiss...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1#
 2#  Copyright(C) 2008
 3#  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4#
 5#  Permission to use, copy, modify, and distribute this
 6#  software and its documentation for EDUCATIONAL purposes
 7#  and without fee is hereby granted provided that this
 8#  copyright notice appears in all copies.
 9#
10#  date   : June 1, 2008.
11#  author : Salih Yurttas.
12#
13#  m_03.rb
14#
15
16def m_one(a=1,b=2)
17  c = a+b
18  print "m_one : ", c, "\n"
19end
20
21m_one
22
23m_one 2,1
24
25m_one(-4,1)