This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* The console will log each number between 1 and toValue (inclusive), | |
* substituting multiples of three with "fizz", multiples of five with "buzz", | |
* and multiples of both three and five with "fizz buzz." | |
*/ | |
void fizzBuzz(int toValue) | |
{ | |
for (int i = 1; i <= toValue; i++) { | |
BOOL isFizz = (i % 3 == 0); | |
BOOL isBuzz = (i % 5 == 0); |