Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reto #0: EL FAMOSO "FIZZ BUZZ” EN JAVA #797

Open
Abrahampaz98 opened this issue Sep 8, 2022 · 0 comments
Open

Reto #0: EL FAMOSO "FIZZ BUZZ” EN JAVA #797

Abrahampaz98 opened this issue Sep 8, 2022 · 0 comments

Comments

@Abrahampaz98
Copy link

public class practica46 {
public static void main(String []args){
int i=1;
while(i<=100){
System.out.println(" "+i++);
if(i%3==0){
System.out.print("Fizz");
}
if(i%5==0){
System.out.print("Buzz");
}
if(i%5==0&&i%3==0){
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant