007
This commit is contained in:
10
set_alarm.v
Normal file
10
set_alarm.v
Normal file
@@ -0,0 +1,10 @@
|
||||
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))
|
||||
}
|
Reference in New Issue
Block a user