New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
can someone tell me how to make it impossible for a user to type a 'userchoice1[x]' value that does not range from 1 - 10.
If you also know a way I can make the user input another value for the 'userchoice1[x]' variable if it is less than 1, I'll appreciate you share the knowledge with me.
please see the short code below
1 Vote
2 AnswersShare files
1 Vote
2 Answers? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 AnswersJust wanted to share DevDocs
6 Votes
1 AnswerHot today
Am new in learning programming
2 Votes
how do i load the Apl
2 Votes
Input Mismatch Error in Java
0 Votes
C++
0 Votes
Certificate
0 Votes
A new bug or an exception?
1 Votes
Even nums 1-100 in multiple ways
0 Votes