blob: 38885b67077e7db3199a3185eb6396e757327443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import gleam/int
import gleam/io
pub fn main() {
let x = int.random(2)
let y = int.random(2)
io.debug(x)
io.debug(y)
let result = case x, y {
0, 0 -> "Both are zero"
0, _ -> "First is zero"
_, 0 -> "Second is zero"
_, _ -> "Neither are zero"
}
io.debug(result)
}
|