Added fmt package

This commit is contained in:
2025-04-07 15:13:57 +02:00
parent cac2bad2fe
commit 08ea91f46c
11 changed files with 25 additions and 20 deletions

View File

@ -1,3 +1,4 @@
import fmt
import io
main() {
@ -12,7 +13,7 @@ fizzbuzz(n int) {
x % 15 == 0 { io.out("FizzBuzz") }
x % 5 == 0 { io.out("Buzz") }
x % 3 == 0 { io.out("Fizz") }
_ { io.number(x) }
_ { fmt.decimal(x) }
}
x += 1