New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
In the short code below, I declared an array of five elements. But I'm getting confused on how to use it in a while loop. My main question is , if the user inputs a userchoice1 value that is less than 1, I want the code to keep looping until the user inputs a number that is not less than 1. But I don't know if the 7th line (userchoice1 [x]++) shows the right way to loop it.
1 Vote
2 AnswersHot today
How to remember what you learned
2 Votes
Find saved code
1 Votes
Usage of Carriage Return (`\r')
3 Votes
How to build logic?
0 Votes
I want a little help.
0 Votes
What is the output of this code?
0 Votes
Question: about node.js
1 Votes