Tsallaka zuwa abun ciki
Justice Tech School

Operators

Arithmetic, comparison, logical and range operators. / on ints is integer division.

Example
println(7 / 2)
println(7 % 2)
println(7 / 2.0)
println(3 in 1..5)
println(2 !in 1..5)
println(true && !false)

Exercise

Range check.

3  1..5

Quiz Test

What is 7 / 2 for Ints?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.