Skip to content

Commit

Permalink
Merge pull request #219 from joaquin-rivero/main
Browse files Browse the repository at this point in the history
Reto #0 - Kotlin
  • Loading branch information
mouredev authored Jan 2, 2023
2 parents c8df785 + ffda7ef commit 49c4203
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 28 deletions.
14 changes: 0 additions & 14 deletions Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/dart/bushi.dart

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
void main() {
_fizzbuzz();
}

void _fizzbuzz() {
for (var i = 1; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
print("fizzbuzz\n");
}
else if (i % 3 == 0) {
print("fizz\n");
}
else if (i % 5 == 0) {
print("buzz\n");
} else {
print("$i\n");
}
}
}
14 changes: 0 additions & 14 deletions Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/kotlin/bushi.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
fun main() {
fizzbuzz()
}

private fun fizzbuzz() {
for (i in 1..100) {
if (i % 3 == 0 && i % 5 == 0) {
println("fizzbuzz")
} else if (i % 3 == 0) {
println("fizz")
} else if (i % 5 == 0) {
println("buzz")
} else {
println(i)
}
}
}

0 comments on commit 49c4203

Please sign in to comment.