4 ms·
I hope it's shorter :) 60 chars: !($1%3){$2="Fizz"}!($1%5){$2=$2 "Buzz"}!$2{$2=$1}{print $2}
by nonchalance 13y ago
I hope it's shorter :) 60 chars:
!($1%3){$2="Fizz"}!($1%5){$2=$2 "Buzz"}!$2{$2=$1}{print $2}
- billjings 13y agoNice. Using $2 as an auto-clearing global is a neat little hack!