Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby basic arithmetic

# Some basic arithmetic
1 + 1 #=> 2
8 - 1 #=> 7
10 * 2 #=> 20
35 / 5 #=> 7
2 ** 5 #=> 32
 
PREVIOUS NEXT
Tagged: #ruby #basic #arithmetic
ADD COMMENT
Topic
Name
8+6 =