diff options
author | haturatu <taro@eyes4you.org> | 2025-01-03 14:36:01 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2025-01-03 14:36:01 +0900 |
commit | 250826e7141542fc92c66fe482bb140a26951b89 (patch) | |
tree | 8a429e7ceabae53e93a60458a5b0a89d223754b4 /fb.awk |
first commit
Diffstat (limited to 'fb.awk')
-rwxr-xr-x | fb.awk | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#!/usr/bin/awk -f + +BEGIN { + for (i = 1; i <= 10; i++) { + if (i % 10 == 0) { + print "FizzBuzz"; + } else if (i % 3 == 0) { + print "Fizz"; + } else if (i % 5 == 0) { + print "Buzz"; + } else { + print i; + } + } +} |