FizzBuzz/AWK: Difference between revisions

m
(Remarks)
Line 5:
This is the "traditional" approach:
Loop, and modulo-check to see what to print. <br>
Minor tweak: printf with no newline, and linebreaks only after each "FizzBuzz",
to get a more compact output.
<lang AWK># usage: awk -v n=38 -f FizzBuzz.awk
Anonymous user