Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Logic Problem Day! The children's game of "FizzBuzz"

Notifications You must be signed in to change notification settings

tjlauer/MavPASS_CIS122_20210923

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

MavPASS_20210923

Logic Problem Day! The children's game of "FizzBuzz"

Today we took a break from revisiting course work. It's a relax day to recover from this week's quiz!
We take a crack at a very common coding interview question - implementing the game of FizzBuzz.


What is FizzBuzz?
• Played by two people counting up in turn.
• Every time there is a Multiple of 3 you say “Fizz”
• Every time there is a Multiple of 5 you say “Buzz”
• Every time there is a Multiple of BOTH you say “FizzBuzz”

The logic problem
• Create a program that plays FizzBuzz for the numbers 1 through 100


The code uploaded to this repository would be considered "Best Practice" because no single line of code is repeated, and it is easily maintainable. We demonstrate this by adding more rules, such as saying "Foo" every time there is a multiple of 7.


As always, if you have any question please send me an email at [email protected].

Have a great weekend, and I will see you on Tuesday!

About

Logic Problem Day! The children's game of "FizzBuzz"

Topics

Resources

Stars

Watchers

Forks

Languages