• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&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.
c++while
1 Vote
2 Answers
29th Dec 2016, 4:59 PM
Cody Arthur
Cody Arthur - avatar
< Previous123Next >
Hot today
I'm about to make a complex calculator in python
1 Votes
why is python community is too small in sololearn?
1 Votes
Audio adding
1 Votes
The best python learning app ????
2 Votes
C#
0 Votes
Stuck in Quize
1 Votes
What is problem in this code
0 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes