New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Can someone tell me what's wrong with this code?
12 Answers
+ 2
Thanks guys
+ 21
Nice question 👏
One more thing to add: redo++;
just before }while (redo <= 10);
otherwise you will never exit your do-while loop
+ 19
After line 35:
redo++;
then:
}while (redo <= 10);
+ 3
the variable NumberOfItems does not have a defined type
+ 3
add "int numberOfItems = 0;" at the top of your do while loop
+ 1
How am I going to fix this? you know, i'm still a student and just started programming. this is an assignment given to me by my professor.
+ 1
thanks.
+ 1
where will I put redo++?
+ 1
Thank you so much. It's a big help for me to get better at making codes.
+ 1
oh. yes. done.
0
yes. Thank you again. to both you and sam.
0
Tick?