Introduction: Code for a Simple Quiz!
this is a code and you can check it out for yourselves
Step 1: Open Notepad
open notepad for easiest way
Step 2: Copy and Paste This
@echo off
color 02 :INTRO echo QUIZ echo. A. type a for start echo. B. type b for exit set /p input=ANSWER HERE if %input%==A goto Q1 if %input%==B goto exit :Q1 echo when is halloween echo. A. september 4th echo. B. october 31st echo. C. october 21st set /p input=ANSWER HERE if %input%==B goto Q2 if %input%==A goto exit if %input%==C goto exit :Q2 echo what is the rest of this marvel hero echo Dead____ echo. A. pool echo. B. stroke echo. C. man set /p input=ANSWER HERE if %input%==A goto WIN if %input%==B goto exit if %input%==C goto exit :WIN echo YAY YOU WON! echo. A. exit echo. B. main set /p input=ANSWER HERE if %input%==A goto exit if %input%==B goto INTRO
Step 3: Save As .bat File
it will only work if you type a name and then .bat (i would recommend quiz.bat)
Step 4: Enjoy!
have fun with it though i might update later!