+ 1
Can I create a loop which is always asking me something and reacting to the diferent questions?
7 Respostas
+ 5
Anytime
+ 4
while(true){}
OR
for(;;){}
these are infinite loops, make sure to break them on a certain condition.
+ 4
while(true) {
// if user selects quit/exit, break loop with break;
}
+ 4
not in sololearn
+ 1
Thanks
0
That’s how AI was invented😆