Files
pplus-web/mojo/corpus/quest/starters/MQ_305.mojo
T
2026-10-05 03:03:38 +00:00

10 lines
207 B
Mojo

def status_word(ready: Int, armed: Int) -> Int:
return ready & armed
def main():
var READY = 1
var ARMED = 2
var flags = status_word(READY, ARMED)
print("armed:", (flags & ARMED) != 0)