Created
February 11, 2022 01:43
-
-
Save moko256/4b8a8a3fb590ea25e082d8048781485b to your computer and use it in GitHub Desktop.
CAUTION: This bat may become very large.
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
@echo off | |
set /a i=i+1 | |
set /a m3=i%%3 | |
set /a m5=i%%5 | |
set /a m15=m3+m5 | |
if %m15%==0 ( | |
echo FizzBuzz | |
) else if %m5%==0 ( | |
echo Buzz | |
) else if %m3%==0 ( | |
echo Fizz | |
) else echo %i% | |
type %~nx0 >> %~nx0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment