What's the best "user input method" that will allow people to choose from a selection of variables and it out puts an answer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the best "user input method" that will allow people to choose from a selection of variables and it out puts an answer?

I need help with applying user input. Im building a app and I am trying to get users to select an option from a list of characters/variables . For example a Person select a "banana" and the output would be "A banana is yellow". How do I enable them to select options I provide and make it output an answer? Hope this make sense. (the banana has nothing to do with the app, its just an example). All help is appreciated.

19th Aug 2017, 11:54 PM
JayWil
JayWil - avatar
2 Answers
+ 2
In which language? Java or Javascript¿
20th Aug 2017, 12:16 AM
Rrestoring faith
Rrestoring faith - avatar
20th Aug 2017, 12:54 AM
Calviղ
Calviղ - avatar