SameviaOpen the app

Operators and Expressions

Operations on values: arithmetic (+ - * / %), comparison (== != > < >= <=, which produce a boolean), and logical (&& AND, || OR, ! NOT). Why: these are what let a program compute and decide — lesson 4's if is blind without a comparison operator. When: every calculation, every condition, every validation. How: an expression evaluates by precedence (* / % before + -), and parentheses beat everything. Where: on the right side of assignments, inside if and loop conditions. Who: you — the compiler only checks syntax, LOGIC is your responsibility.

5 min · 10 XP

Start Learning →

← Samevia

LanguageEnglish