Skip to content

Commit

Permalink
Reto #0 - javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
FranJ authored and FranJ committed Jul 24, 2023
1 parent 9a76f10 commit 0288a49
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/javascript/Rolo27s.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Solucion Reto #0: EL FAMOSO "FIZZ BUZZ"
for (let i = 1; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
console.log("fizzbuzz");
} else if (i % 3 == 0) {
console.log("fizz");
} else if (i % 5 == 0) {
console.log("buzz");
} else {
console.log(i);
}
}

0 comments on commit 0288a49

Please sign in to comment.