Anonymous user
FizzBuzz/AWK: Difference between revisions
m
→Version 1 - regular if / else: printf
(Remarks) |
m (→Version 1 - regular if / else: printf) |
||
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
|