Skip to content

Commit

Permalink
chore: se realiza el reto #0 el famoso Fizz Buzz con Java
Browse files Browse the repository at this point in the history
  • Loading branch information
Dancorrdev committed Dec 26, 2022
1 parent ed92c27 commit 5995fbe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/java/dancorrdev.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
}

0 comments on commit 5995fbe

Please sign in to comment.