vaati
|
Sam 14 Nov - 18:36
|
| Code: | @echo off title QuiZZZ color 0f echo Bienvenue dans le QuiZZZ!! ping localhost -n 4 > nul cls echo Vous devrez repondre par "o" ou "n". ping localhost -n 4 > nul cls echo TSI est-il bien? ping localhost -n 3 > nul
set input= set /p input=o/n?
if %input%==o goto o if %input%==n goto n
:o echo Bien!!Combien font 3x3 fait-il 9. ping localhost -n 3 > nul
set input= set /p input=o/n?
if %input%==o goto o if %input%==n goto n
:o echo Bravo ping localhost -n 2 > nul ping localhost -n 2 > nul ping localhost -n 2 > nul exit |
Pour rajouté une question il faut mettre:
| Code: | echo [question] ping localhost -n 3 > nul
set input= set /p input=o/n?
if %input%==o goto o if %input%==n goto n |
Si la réponse est oui:
| Code: | :o echo [nouvelle question ou réponse] |
Si c'est non:
| Code: | :n echo [nouvelle question ou réponse] |
Et pour finir:
| Code: | ping localhost -n 2 > nul ping localhost -n 2 > nul ping localhost -n 2 > nul exit |
Voila!!
_________________
|
|
|
|