This week's code snippet, Fizz Buzz in Batch, is brought to you by Subete and the Sample Programs repo.
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
for /l %%i in (1,1,100) do (
set /A "m3=%%i %% 3"
set /A "m5=%%i %% 5"
set /A "m15=%%i %% 15"
if !m15! equ 0 (
echo FizzBuzz
) else if !m3! equ 0 (
echo Fizz
) else if !m5! equ 0 (
echo Buzz
) else (
echo %%i
)
)
ENDLOCALBelow you'll find an up-to-date list of articles by me on The Renegade Coder. For ease of browsing, emojis let you know the article category (i.e., blog: ✒️, code: 💻, meta: 💭, teach: 🍎)
- 🍎 Another Year, Another Japan Trip
- 🍎 The Importance of Getting Summers Off
- ✒️ Practicing My Toddler-like Japanese in Japan
- ✒️ Even My Charitability Has Limits
- ✒️ Thoughts on the Red Button vs. Blue Button Debate
- 🍎 What Happens When I’m Forced to Teach AI?
- ✒️ Giving Up Before Even Starting
- ✒️ You Will Never Learn a Language With Duolingo
- ✒️ The Cult of Efficiency Is a Plague
- ✒️ Missing the Forest for the Trees: Why You Struggle to Solve Problems
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2026-06-05 using SnakeMD.





