Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. :menu
  2. @echo off
  3. cls
  4. color 0e
  5. echo (1) Start
  6. echo (2) Quit
  7. echo.
  8.  
  9. set /p choice=)
  10.  
  11. if %choice% == 1 goto question1
  12. if %choice% == 2 exit
  13.  
  14. :question1
  15. @echo off
  16. cls
  17. color 0e
  18. echo Which one is Green?
  19. echo.
  20. echo (1) White
  21. echo (2) Red
  22. echo (3) Green
  23. echo (4) Black
  24. echo.
  25.  
  26. set /p answer1=)
  27.  
  28. if %answer1% == 1 goto wrong1
  29. if %answer1% == 2 goto wrong1
  30. if %answer1% == 3 goto correct1
  31. if %answer1% == 4 goto wrong1
  32.  
  33. :correct1
  34. @echo off
  35. cls
  36. color 0a
  37. echo Correct! Press any key to continue.
  38. pause >nul
  39. goto question2
  40.  
  41. :wrong1
  42. @echo off
  43. cls
  44. color 0c
  45. echo Wrong! Press any key to go back.
  46. pause >nul
  47. goto question1
  48.  
  49. :question2
  50. @echo off
  51. cls
  52. color 0e
  53. echo What is 250+250?
  54. echo.
  55. echo (1) 500
  56. echo (2) 250250
  57. echo (3) 420
  58. echo (4) 69
  59. echo.
  60.  
  61. set /p answer2=)
  62.  
  63. if %answer2% == 1 goto correct2
  64. if %answer2% == 2 goto wrong2
  65. if %answer2% == 3 goto wrong2
  66. if %answer2% == 4 goto wrong2
  67.  
  68. :correct2
  69. @echo off
  70. cls
  71. color 0a
  72. echo Correct! Press any key to continue.
  73. pause >nul
  74. goto question3
  75.  
  76. :gresit2
  77. @echo off
  78. cls
  79. color 0c
  80. echo Wrong! Press any key to go back.
  81. pause >nul
  82. goto question2
  83.  
  84. :question3
  85. @echo off
  86. cls
  87. color 0e
  88. echo What is my name on 9GAG?
  89. echo.
  90. echo (1) xXxPu$$y$l4y3r420xXx
  91. echo (2) an_awesome_dude
  92. echo (3) Kaan.
  93. echo (4) KaanKATR
  94. echo.
  95.  
  96. set /p answer3=)
  97.  
  98. if %answer3% == 1 goto wrong3
  99. if %answer3% == 2 goto wrong3
  100. if %answer3% == 3 goto wrong3
  101. if %answer3% == 4 goto correct3
  102.  
  103. :wrong3
  104. @echo off
  105. cls
  106. color 0c
  107. echo Wrong! Press any key to go back.
  108. pause >nul
  109. goto question3
  110.  
  111. :correct3
  112. @echo off
  113. cls
  114. color 0a
  115. echo You have passed the quiz! Press any key to exit.
  116. pause >nul
  117. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement