RosettaCodeData/Task/Detect-division-by-zero/Oforth/detect-division-by-zero.fth

5 lines
99 B
Forth
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
: divideCheck(n)
| e |
try: e [ 128 n / ] when: [ "Zero detected..." . ]
"Leaving" println ;