From 5995fbeb7ea1e1c9d78d9ca1da3ab10c39cd09b3 Mon Sep 17 00:00:00 2001 From: Danilo Cortes Date: Mon, 26 Dec 2022 15:13:30 -0500 Subject: [PATCH] chore: se realiza el reto #0 el famoso Fizz Buzz con Java --- .../java/dancorrdev.java" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/java/dancorrdev.java" diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/java/dancorrdev.java" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/java/dancorrdev.java" new file mode 100644 index 0000000000..314d5115dc --- /dev/null +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/java/dancorrdev.java" @@ -0,0 +1,15 @@ +public class dancorrdev { + public static void main(String[] args) { + for (int i = 1; i < 100; i++) { + if (i % 3 == 0 && i % 5 == 0){ + System.out.println("FIZZBUZZ"); + } else if (i % 3 == 0) { + System.out.println("FIZZ"); + } else if (i % 5 == 0) { + System.out.println("BUZZ"); + }else { + System.out.println(i); + } + } + } +}