· Arithmetic Operators Operators Covered: + add - subtract multiply / divide exponential ex. 10 x 10 x 10 1000 % modulo ex. 10/31 (3 goes into 10 three times with a remainder of 1) فيديو Ruby Programming - 2 - Arithmetic Operators Tutorial | Jake Da
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: