c 2b 2b fizzbuzz

Solutions on MaxInterview for c 2b 2b fizzbuzz by the best coders in the world

showing results for - "c 2b 2b fizzbuzz"
Valeria
26 Jan 2019
1// a short fizzbuzz, can make smaller by removing spaces
2#include <iostream>
3
4int i;
5int main() {
6for (auto &o=std::cout; ++i < 101; o<<'\n')
7    i%3? o :  o << "Fizz",
8    i%5? i%3? o << i :o : o << "Buzz";
9}