11 lines
229 B
V
11 lines
229 B
V
fn set_alarm(employed bool, vacation bool) bool {
|
|
return employed && !vacation
|
|
}
|
|
|
|
fn main() {
|
|
println(set_alarm(true, false))
|
|
println(set_alarm(true, true))
|
|
println(set_alarm(false, false))
|
|
println(set_alarm(false, true))
|
|
}
|