FizzBuzz Numbers Assignment

I have to write a program that does this:

Write a program that prints the numbers from 1 to 100 except in these cases:
For multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”.

And I'm not sure how to make it only print on the multiples of three's and five's...if someone could help point me in the right direction that would be a great help!
Can you figure out a way to know if a number is a multiple of three? Here's a useful operator to look up: % ( http://www.cplusplus.com/doc/tutorial/operators/ )
Thanks!
I figured it out now..!
Topic archived. No new replies allowed.