bubblecode handles numbers and math just like you’d expect — with the familiar +, -, *, and / operators.
Basic arithmetic
math.bubbleStoring results
You can do math inside a put or set statement:
calc.bubbleModulo (remainder)
The mod operator gives you the remainder after division:
mod.bubbleBuilt-in math functions
bubblecode comes with handy math functions:
mathfns.bubbleExercise
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.bubbleQuiz
Question 1 of 3
What does 10 mod 3 return?