March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
10
Task/FizzBuzz/Batch-File/fizzbuzz-3.bat
Normal file
10
Task/FizzBuzz/Batch-File/fizzbuzz-3.bat
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@echo off & setlocal enabledelayedexpansion
|
||||
for /l %%i in (1,1,100) do (
|
||||
set /a m5=%%i %% 5
|
||||
set /a m3=%%i %% 3
|
||||
set s=
|
||||
if !m5! equ 0 set s=!s!Fizz
|
||||
if !m3! equ 0 set s=!s!Buzz
|
||||
if "!s!"=="" set s=%%i
|
||||
echo !s!
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue