Math Operators

Table

Practice

Next Section

Math Operators

We can use math to change numbers around and edit our data. You can use these operators on an integer and another integer, on a float and another float, or on a combination of the two.

Table

Format:

Operator

Usage (Code Example)

Note

Practice

Math

Ask the user for a number, and store it in a variable called x. Divide the number x by 5, then add 2 to it, then store it in a variable called y. Print the result (y).

💻Template code

✅Solution code

Cylinder Volume