Write a program where we type letters a to e, if the user types another letter display an error message. Type 7 and it quits. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Write a program where we type letters a to e, if the user types another letter display an error message. Type 7 and it quits.

Rewrite the program using a "while" loop

14th Mar 2017, 1:55 AM
Jason Bourne
1 Réponse
0
Try below code in VS. Console.ReadLine() inside while gives error in Solo Playground. https://code.sololearn.com/cwc1LuOYq6PY/?ref=app
14th Mar 2017, 6:03 AM
Eranga
Eranga - avatar