Skip to content

mafradiego/FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

FizzBuzz

public class FizzBuzz {

	public static void main (String) [] args) {


	int n = 1;


	while (n<= 100) {
		if ((n%3 == 0) || (n%5 ==0)) {
			if (n%3 == 0) {
			System.out.print("Fizz");
			}
			if (n%5 == 0) {
			System.out.print("Buzz");
			}
			System.out.println ();
			}
			else {
			System.out.println(n);
			}
			n = n + 1;
		}
		System.out.println("Acabou...!");
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages