diff --git a/set_alarm.v b/set_alarm.v new file mode 100644 index 0000000..86b9aea --- /dev/null +++ b/set_alarm.v @@ -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)) +}