#include <stdio.h> int main(int argc, char *argv){ int i; for(i=0; i < 101; i++) { switch((i%7 == 0) << 2 | (i%5 == 0) << 1 | (i%3 == 0)) { case 0: printf("%d\n", i); break; case 1: printf("Fizz\n"); break; case 2: printf("Buzz\n"); break; case 3: printf("FizzBuzz\n"); break; case 4: printf("Wizz\n"); break; case 5: printf("FizzWizz\n"); break; case 6: printf("BuzzWizz\n"); break; case 7: printf("FizzBuzzWizz\n"); break; } } }
According to The Directive 2009/24/EC of the European Parliament and of the Council, and Sec.103(f) of the DMCA (17 U.S.C. § 1201 (f)), the reverse engineering act committed to creating these blog posts is considered legal, as this is an original attempt to improve interoperability, and cannot be waived by license agreements.
The views expressed on this blog are my own and do not necessarily reflect the views of my past and present employers.
2014-09-23
C: FizzBuzzWizz
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment