+ 1
Plese help urgently
https://code.sololearn.com/c6mx5RMQv83U/?ref=app i am giving multiple input separated into multiple lines but , i think playground isn't accepting or may be that my code has an error in it help in debugging thanks
1 Resposta
+ 4
You are initializing int i in every iteration in while loop!
while(true){
int i=0;
...
}
Value of i will be always 0 so you should declare it outside the while loop.
https://code.sololearn.com/c5yZhLO7X6Xb/?ref=app