Skip to content

A java solution to the "Fizz-Buzz" interview question.

Notifications You must be signed in to change notification settings

wynnblevins/FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Fizz Buzz

What Is Fizz Buzz?

Fizz buzz is a common java interview program which prompts the user to enter a number then responds in one of the following ways...

  • if the number is divisible by 3, print "Fizz"
  • if the number is divisible by 5, print "Buzz"
  • if the number is divisible by neither, print the number
  • if the number is divisible by 3 and 5, print "FizzBuzz"

How do I run Fizz Buzz?

From CMD

Open a command prompt and navigate to the src directory of the project. This is located in the root of the project. First compile the project's java files by running the following:

javac -cp . com\dominionconsulting\*.java

Next, run the compiled java class files by running:

java -cp . com.dominionconsulting.App

About

A java solution to the "Fizz-Buzz" interview question.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages