102k views
0 votes
Print a message telling a user to press the letterToQuit key numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and numPresses = 2, print:

User Gbn
by
7.5k points

1 Answer

2 votes

Answer:

Vb.Net

msgbox ("Press "q" twice to quit", msgboxstyle.information)

if char.q = keypress and keypress.count = 2 then

End

End if

Step-by-step explanation:

User Altug
by
7.1k points