Skip to content

Wesley1809/FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Fizzbuzz Using what we've learned about loops and conditionals, solve this classic coding challenge (it's been a favorite in interviews for years).

Write code that will go through each number from 1 to 100 and:

For each number that is a multiple of 3, print "Fizz" For each number that is a multiple of 5, print "Buzz" For numbers which are a multiple of both 3 and 5, print "FizzBuzz" All other numbers should just print normally A short segment should look like

1 2 "Fizz" 4 "Buzz" "Fizz" 7 8 "Fizz" "Buzz" 11 "Fizz" 13 14 "FizzBuzz"copy Hint: We may need to make use of the modulo operator a % b

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published