diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/bushi.dart" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/bushi.dart" deleted file mode 100644 index ebf54765c1..0000000000 --- "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/bushi.dart" +++ /dev/null @@ -1,14 +0,0 @@ -void main() { - for (var i = 1; i <= 100; i++) { - var result = "$i. "; - - if (i % 3 == 0) { - result += "fizz"; - } - if (i % 5 == 0) { - result += "buzz"; - } - - print("$result\n"); - } -} \ No newline at end of file diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/joaquin-rivero.dart" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/joaquin-rivero.dart" new file mode 100644 index 0000000000..ada19ac8fc --- /dev/null +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/dart/joaquin-rivero.dart" @@ -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"); + } + } +} \ No newline at end of file diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/bushi.kt" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/bushi.kt" deleted file mode 100644 index 7bc0556d0b..0000000000 --- "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/bushi.kt" +++ /dev/null @@ -1,14 +0,0 @@ -fun main() { - for (i in 1..100) { - var result = "$i. " - - if (i % 3 == 0) { - result += "fizz" - } - if (i % 5 == 0) { - result += "buzz" - } - - println(result) - } -} \ No newline at end of file diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/joaquin-rivero.kt" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/joaquin-rivero.kt" new file mode 100644 index 0000000000..f1005c27d1 --- /dev/null +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/kotlin/joaquin-rivero.kt" @@ -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) + } + } +} \ No newline at end of file