Why is my while loop is not working what wrong was in my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is my while loop is not working what wrong was in my code?

What I want to do is the user put an https://code.sololearn.com/cV6Ltet4w7TP/?ref=app

21st Nov 2019, 7:22 PM
Shofi Uddin
7 Answers
0
Is not working I changed to while(barcode! =f)
21st Nov 2019, 8:02 PM
Shofi Uddin
0
Still some this are sure I put the right loop can u check my code if is oky https://code.sololearn.com/cV6Ltet4w7TP/?ref=app
21st Nov 2019, 8:16 PM
Shofi Uddin
0
I did for loop before it work but I need to use while loop so the used can enter f to finish the loops
21st Nov 2019, 8:48 PM
Shofi Uddin
0
Yes the barcode is inside of array that way I want to put while for so can run and if user enter then the loops will break
21st Nov 2019, 8:58 PM
Shofi Uddin
0
So I can't compare while with array
21st Nov 2019, 9:17 PM
Shofi Uddin
- 1
Oh this loop I used when I did for loop but I try in one as well but did work
21st Nov 2019, 8:52 PM
Shofi Uddin
- 1
I didn't get what u mean I had revised the loops course
21st Nov 2019, 9:37 PM
Shofi Uddin