Menu

bubblecode handles numbers and math just like you’d expect — with the familiar +, -, *, and / operators.

Basic arithmetic

math.bubble

Storing results

You can do math inside a put or set statement:

calc.bubble

Modulo (remainder)

The mod operator gives you the remainder after division:

mod.bubble

Built-in math functions

bubblecode comes with handy math functions:

mathfns.bubble

Exercise

Exercise

Calculate the area of a rectangle with width 12 and height 5. Store it in a variable called "area" and print "Area: 60".

exercise.bubble

Quiz

Question 1 of 3

What does 10 mod 3 return?