You don't have to end the line with every cout.
Also you don't need syntax highlighting to properly space your code. I did this in the quick reply box.Code:if (!(count % 3)) cout << "Fizz"; if (!(count % 5)) cout << "Buzz"; if (count % 3 || count % 5) cout << count; cout << endl;![]()
Results 1 to 4 of 4
Thread: Repetitiveness
Threaded View
- 15 Aug. 2013 03:45am #2