© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
18 replies
Ewan

✅ Help with my program please!

Ok so for this program im making, I want the user to input a number (e.g. 15) and then the words fizz, buzz and fizzbuzz to be printed. The number inputted is what the program will go up to so if 15 was inputted then it would check numbers 1 to 15
Fizz for every number divisible by 3
Buzz for every number divisible by 5
And Fizzbuzz for every number divisible by 5 and 3
Then output on the last line of my code how many times it has said fizz, buzz, fizzbuzz and also how many numbers have been printed which arent divisible by 3 and 5.
however on the last line, every time i run the program all the numbers printed are the same e.g. 5,5,5,5
why? Help please!
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Please, help me with program logic
C#CC# / help
2y ago
I need help with my program
C#CC# / help
4y ago
✅ Help with the code, please. I want my program to work properly.
C#CC# / help
3y ago
Help with program structure.
C#CC# / help
3y ago