Operators
Math (+ - * / %/% %% ^), comparison (== != < >) and logic (& | !).
Simple enough for a 5-year-old to understand
Math operators
/ gives decimal; integer division is %/%, remainder is %%, and exponentiation is with ^.
cat(7 + 3, "\n", sep="")cat(7 / 2, "\n", sep="")cat(7 %/% 2, "\n", sep="")cat(7 %% 2, "\n", sep="")cat(2 ^ 10, "\n", sep="")🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 3