Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 363efbba authored by Dorian Turba's avatar Dorian Turba
Browse files

Add FizzBuzz.md file

parent 9b8f2f3f
No related branches found
No related tags found
No related merge requests found
𝗙𝗶𝘇𝘇𝗕𝘂𝘇𝘇 ⭐
Create a script that print each number from 1 to 100. However, you must change the output for some numbers, depending on their value.
- Multiple of 3 should be replaced with Fizz,
- Multiple of 5 should be replaced with Buzz,
- Multiple of 3 and 5 should be replaced with FizzBuzz.
Follow-up:
1.⭐⭐: Make it works with two given integer, the first as the start, and the second as the end. You must start printing from the first given value, not the lowest.
2.⭐⭐⭐: 2⭐is required.
Now, in addition to Fizz, Buzz, and FizzBuzz, print Flash for numbers multiple of 3 and multiple of 7, Light for multiple of 4 but not multiple of 10, BALROG! when the number is a multiple of 666, and Narciss when the number is pluperfect digit invariant.
- Flash cannot coexist with Fizz,
- Light must be placed after Flash or Fizz but before Buzz.
- BALROG! and Narciss are special cases replacing any other case. Tips: What is a pluperfect digit invariant? 🎶 Search engine 🎶
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment