Ruby 1.9.3 Slide 4 Pre-requisites To follow this tutorial you must know how to use Terminal and Text editor in Linux. You must also be familiar with irb. If not, for relevant tutorials, please visit our website Slide 5 Arithmetic Operators (need to change
Ruby supports a rich set of operators, as you'd expect from a modern language. Most operators are actually method calls. For example, a + b is interpreted as a.+(b), where the + method in the object referred to by variable a
Ruby Arithmetic Operators: Arithmetic operators take numerical values as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/).
Post a Comment:
Showing 0 Comments: