How can i create a input that only allows the letters a b c d
The console will ask to please enter a letter. And they can only enter the letters a b c d.
And if they enter it, it says thank you for enter a, or b or c or d.
How can i create a input that only allows the letters a b c d
The console will ask to please enter a letter. And they can only enter the letters a b c d.
And if they enter it, it says thank you for enter a, or b or c or d.
I'm sure I've seen someone else ask this question on here, I might be wrong! Please show that you have at least tried :P
I'll give you an idea:
initialise (char) c;
do
-> input c
-> while (c IS NOT 'a', OR 'b', OR 'c')
-> print "Yes I did it!!"
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.