Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Implement a FizzBuzz Algorithm to Handle Special Output for Multiples of 3 and 5 #113

Closed
SaurabhKumar171 opened this issue Oct 6, 2024 · 1 comment
Assignees

Comments

@SaurabhKumar171
Copy link
Contributor

Detailed Explanation:
We need to create a solution to the FizzBuzz problem, a common algorithmic challenge. The program should iterate through numbers 1 to 100, performing specific actions based on the divisibility of each number. The detailed behavior is as follows:
1). For numbers divisible by 3, the program should print "Fizz" instead of the number.
2). For numbers divisible by 5, the program should print "Buzz" instead of the number.
3). For numbers divisible by both 3 and 5, the program should print "FizzBuzz."
4). If the number is not divisible by either 3 or 5, it should print the number itself.

Expected Behavior:
The solution should correctly identify numbers divisible by 3, 5, or both, and print the appropriate output. The program should complete without any errors and display results in the terminal or console.

Can you please assign me this issue under Hacktoberfest 2024?
#Hacktoberfest2024

@Ayu-hack
Copy link
Owner

Ayu-hack commented Oct 6, 2024

Assigned.

⭐ Star these repos to get your PR merged faster!

🚀
More repos are available for pull requests, and they’re part of Hacktoberfest 2024.
Feel free to tag me in your Hacktoberfest certificate or badges LinkedIn post! 😄
👉 Follow my GitHub and connect with me on LinkedIn!


@Ayu-hack Ayu-hack added Hacktoberfest2024 Participant of hacktoberfest and removed Hacktoberfest2024 Participant of hacktoberfest labels Oct 6, 2024
@Ayu-hack Ayu-hack closed this as completed Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants