Last active
August 29, 2015 13:57
-
-
Save kunst1080/9429272 to your computer and use it in GitHub Desktop.
FizzBuzz in cmd.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /l %i in (1,1,100) do @((set/a a=%i%3,b=%i%5)>nul & if !a!!b!==00 (echo FizzBuzz) else (if !b!==0 (echo Buzz) else if !a!==0 (echo Fizz) else (echo %i))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment