C#C
C#3y ago
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
Was this page helpful?