Learn
Introduction to Ruby
Math

Good! Now let’s do a little math.

Instructions

1.

In the editor, set the variables:

  • sum equal to 13 + 379
  • product equal to 923 * 15
  • quotient equal to 13209 / 17

Print each variable to the console using puts if you want to see the results.

Folder Icon

Take this course for free

Already have an account?