Skip to content

Commit

Permalink
Merge pull request #1 from Dancorrdev/main
Browse files Browse the repository at this point in the history
Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/java/dancorrdev.java
  • Loading branch information
mouredev authored Jan 2, 2023
2 parents 4fdb32d + af7957d commit f1238ba
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 f1238ba

Please sign in to comment.