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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
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