Skip to content

Instantly share code, notes, and snippets.

@GlitchyZorua
Created October 31, 2022 21:14
Show Gist options
  • Save GlitchyZorua/df46162cd89723032c844725e3bbbc00 to your computer and use it in GitHub Desktop.
Save GlitchyZorua/df46162cd89723032c844725e3bbbc00 to your computer and use it in GitHub Desktop.
@echo off
title Donut vending machine, by Jacob.
:a
cls
echo Welcome to the donut vending machine
echo 1 = Get a doughnut
echo 2 = Eat a doughnut
echo 3 = Exit
echo 4 = about
set /p input= :
if %input%==1 goto 1
if %input%==2 goto 2
if %input%==3 goto 3
if %input%==exit goto 3
if %input%==close goto 3
if %input%==bye goto 3
if %input%==goodbye goto 3
if %input%==4 goto 4
if %input%==about goto 4
:1
echo You got a doughnut!
pause
goto a
:2
echo You ate a donut
pause
goto a
:3
echo Exiting...
exit
:4
echo Made by me.
echo v0.0.1
pause
goto a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment