Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-rosetta/blob/main/drafts/rosettacode/fizzbuzz.wiki # omega-rosetta aien-dev/omega-rosetta Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-rosetta / drafts / rosettacode / fizzbuzz.wiki` 83 lines ยท 1094 bytes Raw Blame History 1 =={{header|Omegese}}== 2 {{works with|omc|sha256 `2c824805`, aien-dev/omega-mv `e5b32567`, Linux AArch64}} 3 Omega has no imports, so the small output helpers (emit and friends) are part of the program. 4 5 om2 6 text nl "\n" 7 text fz "Fizz" 8 text bz "Buzz" 9 text fb "FizzBuzz" 10 note emit writes every byte of a to stdout; a short write is retried, an error exits 1 11 fn emit a view uchar * to void 12 o = ulong 0 13 while lt o len a bound 4096 14 k = write 1 a o sub len a o 15 if le k 0 16 exit 1 17 end 18 o = add o ulong k 19 end 20 end 21 note emitu writes n in decimal; 20 digits hold every ulong 22 fn emitu n ulong to void 23 d = new uchar 20 0 24 i = ulong 20 25 v = n 26 while true bound 20 27 i = sub i 1 28 put d i uchar add rem v 10 48 29 v = div v 10 30 if eq v 0 31 break 32 end 33 end 34 emit part d i sub 20 i 35 end 36 fn main to int 37 for i ulong 100 38 n = add i 1 39 if eq rem n 15 0 40 emit fb 41 else 42 if eq rem n 3 0 43 emit fz 44 else 45 if eq rem n 5 0 46 emit bz 47 else 48 emitu n 49 end 50 end 51 end 52 emit nl 53 end 54 ret 0 55 end 56 57 {{out}} 58

59 1

60 2

61 Fizz

62 4

63 Buzz

64 Fizz

65 7

66 8

67 Fizz

68 Buzz

69 11

70 Fizz

71 13

72 14

73 FizzBuzz

74 ...

75 Fizz

76 94

77 Buzz

78 Fizz

79 97

80 98

81 Fizz

82 Buzz

83