Skip to content

Commit

Permalink
Change example code to FizzBuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi committed Jul 26, 2024
1 parent 2970c95 commit 7c3ab86
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions example.ss
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
print "Multiplication table";
var i <- 0;
while i < 9 {
while i < 100 {
var i <- i + 1;
var line <- "";

var j <- 0;
while j < 9 {
var j <- j + 1;
var line <- line + str(i * j).rjust(3);
if i % 15 == 0 {
print "FizzBuzz";
}; if !(i % 15 == 0) {
if i % 5 == 0 {
print "Buzz";
}; if !(i % 5 == 0) {
if i % 3 == 0 {
print "Fizz";
}; if !(i % 3 == 0) {
print i
};
};
};
print line;
};

0 comments on commit 7c3ab86

Please sign in to comment.