Skip to content

Commit

Permalink
Merge pull request mouredev#4259 from Rolo27s/Rolo27s
Browse files Browse the repository at this point in the history
Reto #0 - javascript
  • Loading branch information
kontroldev authored Jul 24, 2023
2 parents 5714a2a + 0288a49 commit 063548a
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 063548a

Please sign in to comment.