If-else matching

Report a typo

Match the parts of if-else expressions.

Match the items from left and right columns
if x ==
if a > 0 then 1 else
if
5 then println(x)
2
(b % 3 == 0) 9 else if (b % 2 == 0) 10 else 20
___

Create a free account to access the full topic