Operators
Math (+ - * div mod), comparison (== < >), and logic (&& || not).
Simple enough for a 5-year-old to understand
Math operators
Integer division uses div, and remainder uses mod. / works only with floating-point (Double) numbers.
main = do print (7 + 3) print (div 7 2) print (mod 7 2) print (7.0 / 2.0)🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 3