Skip to main content
Practice

4

deck

How to Read Arithmetic Operators

SymbolMeaningPronunciation (stressed syllable)
+additiona[DI]tion
-subtractionsubtr[AC]tion
*multiplicationmultipli[CA]tion
/divisiondi[VI]sion
%modulus, modulo[MO]dulus, [MO]dulo
**power, exponent[PO]wer, [EX]ponent / expo[NEN]t
=assignmenta[SSI]gnment

===

Expressions in Code

SymbolEnglish TermCode ExampleInterpretation
+plus5 + 3 = 85 plus 3 is 8
-minus10 - 4 = 610 minus 4 is 6
*times, multiplied by6 * 7 = 426 times 7 is 42 / 6 multiplied by 7 is 42
/divided by20 / 5 = 420 divided by 5 is 4
%modulo, mod, remainder when divided by10 % 3 = 110 modulo 3 is 1 / 10 mod 3 is 1 / the remainder when 10 is divided by 3 is 1
**to the nth power, squared, cubed2 ** 3 = 82 to the 3rd power is 8
5 ** 2 = 255 squared is 25 / 5 to the power of 2 is 25
4 ** 3 = 644 cubed is 64
=assigned to, is set tox = 10x is assigned to 10 / x is set to 10
  • In programming, = signifies assignment, which is different from equal in mathematics.

===

Expressions of Increase and Decrease

VerbExample
incrementA variable that is incremented by 2 on each iteration of a loop.
increaseIncrease the variable x by 2.
decrementThe variable x is decremented by 1 in each recursive call.
decreaseDecrease the variable x by 2.
  • increment typically refers to a small increase or increment unit and is mainly used as a noun.
  • increase is used for general growth and can be both a verb and a noun.
  • decrement and decrease share a similar relationship.

===

Expressions for Comparison Operators

SymbolEnglish PhraseExampleInterpretation
==equals / is equal to5 == 55 equals 5 / 5 is equal to 5
!=not equal to5 != 35 is not equal to 3
>greater than7 > 37 is greater than 3
<less than3 < 73 is less than 7
>=greater than or equal to4 >= 44 is greater than or equal to 4
<=less than or equal to2 <= 52 is less than or equal to 5

===

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.