First Post!!!

I thought I would submit my solution for the FizzBuzz test. I’ve used PowerShell and VBScript for the solution since the majority of my dev work is Windows sysadmin scripting. FizzBuzz for PowerShell: for ($i = 1; $i -le 100; $i++) { if (($i % 3 -eq 0) -and ($i % 5 -eq 0)) { Write-Host "FizzBuzz" } elseif ($i % 3 -eq 0) { Write-Host "Fizz" } elseif ($i % 5 -eq 0) { Write-Host "Buzz" } else { $i } } … and VBScript...

October 25, 2009 · 1 min