Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
help me
0 głosów
2 odpowiedziCan I shorten this code?
3 głosów
4 odpowiedzi@import
0 głosów
1 Odpowiedź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 Głos
2 odpowiedziIn 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 Głos
2 odpowiedziPopularne dzisiaj
App doesnt work
3 Votes
Where can I write code for free
1 Votes
Project on HTML and CSS
2 Votes
Code Coach
2 Votes
Tutorial loop
1 Votes
Recent update issues?
1 Votes