How make a program with options? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How make a program with options?

Press 1 for "x" press 2 for "y" press 3 for "z"

13th Feb 2020, 11:16 PM
Edwin Bg
Edwin Bg - avatar
3 Answers
+ 4
You can use if-else statements or a switch statement. Try checking out the tutorials for those here are Sololearn.
13th Feb 2020, 11:29 PM
Jianmin Chen
Jianmin Chen - avatar
+ 1
In SoloLearn code playground, only Web code facilities a GUI.
14th Feb 2020, 12:03 AM
Gordon
Gordon - avatar
14th Feb 2020, 5:01 AM
Gordon
Gordon - avatar