+ 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

5th Sep 2017, 2:25 PM
rahul mishra
rahul mishra - avatar
1 ответ
+ 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
5th Sep 2017, 3:06 PM
OrbitHv [Inactive]
OrbitHv [Inactive] - avatar