Fixed readme

This commit is contained in:
logan 2024-11-05 17:15:05 -06:00
parent c1ae2b4e48
commit 3f99fefe87

View file

@ -10,10 +10,6 @@ annotated "FizzBuzz" program
``` ```
fizzbuzz :: (number) { fizzbuzz :: (number) {
sum := 0; sum := 0;
if number == 0 {
println("Input cannot be zero");
break sum; // Early return
}
for i : 0..number { for i : 0..number {
if (i % 3 == 0) and (i % 5 == 0) { if (i % 3 == 0) and (i % 5 == 0) {
println("fizzbuzz"); println("fizzbuzz");