Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- Setlocal enabledelayedexpansion
- :top1
- Echo Set the limit to the array (1 - X)
- Set /P end=X=
- If not X GTR 0 call dumbass
- Set /a test3=(%end%/3)+1
- Set /a test5=(%end%/5)+1
- For /L %%A in (1,1,%end%) do set number%%A=%%A
- For /L %%B in (1,1,%test3%) do (
- Set /a current=%%B*3
- Set number!current!=Fizz
- )
- For /L %%C in (1,1,%test5%) do (
- Set /a current=%%C*5
- Set number!current!=Buzz
- )
- For /L %%D in (1,1,%end%) do (
- Echo !number%%D!
- )
- Echo End of Array.
- Pause>nul
- :dumbass
- Echo You didn't input a valid number. Try again.
- Pause
- Cls
- Goto top1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement