Classroom Notes: 1.2 Using Operators
1) What are the arithmetic operators used in programming? Short
answer?
Arithmetic Operators in Programming:
- Addition (+) → adds values
- Subtraction (-) → subtracts values
- Multiplication (* or x) → multiplies values
- Division (/) → divides values
2) What are the comparison operators in programming?
Comparison Operators in Programming:
- Equal to (==) → checks if two values are the same
- Not equal to (!=) → checks if values are different
- Greater than (>) → checks if one value is bigger
- Less than (<) → checks if one value is smaller
- Greater than or equal to (>=) → bigger or same
- Less than or equal to (<=) → smaller or same