Skip to content

FizzBuzz assignment for the Software Development Methods course

Notifications You must be signed in to change notification settings

cecia234/FizzBuzz-assignment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FizzBuzz assignment

We want to write a Java program that prints the numbers from 1 to 100 to the "standard" output stream and follows these rules.

  • For multiples of 3 it prints Fizz instead of the number.
  • For multiples of 5 it prints Buzz instead of the number.
  • For numbers which are multiples of both 3 and 5 it prints FizzBuzz.

Extended version

We want our Java program to print numbers from 1 to 105 and apply these additional rules.

  • For multiples of 7 it prints Bang instead of the number.
  • For numbers which are multiples of both 3 and 7 it prints FizzBang.
  • For numbers which are multiples of both 5 and 7 it prints BuzzBang.
  • For numbers which are multiples of 3, 5 and 7 it prints FizzBuzzBang.

Notes

  • This assignment is a variant of the Fizz Buzz Test.
  • Feel free to change the existing code.

About

FizzBuzz assignment for the Software Development Methods course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%