|
Display the menu
Get user choice
Select choice:
case choice = 1
Say
"You have chosen to play Tetris"
case choice = 2
Say
"You have chosen to play Hangman"
case choice = 3
Say
"Goodbye"
case choice = 4
Say
"Wrong choice"
End select
|
'Designing menu
PRINT "1. Play Tetris"
PRINT "2. Play Hangman"
PRINT "3. Exit"
INPUT "Enter your choice"; choice
SELECT CASE choice
CASE 1
PRINT "You have chosen to play Tetris"
CASE 2
PRINT "You have chosen to play Hangman"
CASE 3
PRINT "Goodbye"
END
CASE ELSE
PRINT "wrong choice"
END SELECT |