RosettaCodeData/Task/FizzBuzz/PowerShell/fizzbuzz-4.psh

2 lines
127 B
Plaintext

1..100 | % {write-host("$(if(($_ % 3 -ne 0) -and ($_ % 5 -ne 0)){$_})$(if($_ % 3 -eq 0){"Fizz"})$(if($_ % 5 -eq 0){"Buzz"})")}