Comment on Solving FizzBuzz with C++ compiler error messagesparentComments−xanadohnt14yUm, nope, it is within the spec. The spec doesn't mention not printing other numbers. He met the req of printing 1-100 (he just also happened to print 0).−mkopinsky14yBy this logic, the following would also be an acceptable solution: cat /dev/random > fizzbuzz.txt
Comments
Um, nope, it is within the spec. The spec doesn't mention not printing other numbers. He met the req of printing 1-100 (he just also happened to print 0).
By this logic, the following would also be an acceptable solution: