Numbers And Arithmetic
Goals
Step 1
Type this in irb:1.class 1.0.class
Step 2
Type this in irb:1 + 2 1.0 + 2.0 1 + 2.0
Step 3
Type this in irb:2 - 1 2.0 - 1.0 2.0 - 1
Step 4
Type this in irb:2 * 3 2.0 * 3 2.0 * 3.0
Step 5
Type this in irb:4 / 2 8 / 2 6 / 4 6 / 4.0
Step 6
Type this in irb:4 / 0
Challenge(s)
What is the first number? > 2 What is the second number? > 4 The sum is 6
Next Step:
Go on to Booleans