initial commit

This commit is contained in:
Christoph J. Scherr 2025-08-05 13:52:03 +02:00
commit d9a0aa3b61
Signed by: PlexSheep
GPG key ID: 9EB784BB202BB7BB
6 changed files with 63 additions and 0 deletions

0
README.md Normal file
View file

14
src/fb.js Normal file
View file

@ -0,0 +1,14 @@
for (let i = 1; i <= 100; i++) {
if (i % 15 == 0) {
console.log("FizzBuzz");
}
else if (i % 3 == 0) {
console.log("Fizz");
}
else if (i % 5 == 0) {
console.log("Buzz");
}
else {
console.log(i)
}
}

11
src/fb.lua Executable file
View file

@ -0,0 +1,11 @@
for i = 1, 100 do
if i % 15 == 0 then
print("FizzBuzz")
elseif i % 5 == 0 then
print("Fizz")
elseif i % 3 == 0 then
print("Buzz")
else
print(i)
end
end

16
src/fb.php Normal file
View file

@ -0,0 +1,16 @@
<?php
for ($i=1; $i <=100 ; $i++) {
if ($i % 15 == 0) {
print("FizzBuzz\n");
}
elseif ($i%3==0) {
print("Fizz\n");
}
elseif ($i%5==0) {
print("Buzz\n");
}
else {
print($i . "\n");
}
}
?>

9
src/fb.py Normal file
View file

@ -0,0 +1,9 @@
for i in range(1,101):
if i % 15 == 0 :
print("FizzBuzz")
elif i % 5 == 0 :
print("Fizz")
elif i % 3 == 0 :
print("Buzz")
else:
print(i)

13
src/fb.rs Normal file
View file

@ -0,0 +1,13 @@
fn main() {
for i in 1..=100 {
if i % 15 == 0 {
println!("FizzBuzz")
} else if i % 3 == 0 {
println!("Fizz")
} else if i % 5 == 0 {
println!("Buzz")
} else {
println!("{i}");
}
}
}