0
Why my output isn't working?
I implemented the logic according to the problem mentioned but I am not getting the correct output. *please look at code post for better problem explanation* https://code.sololearn.com/c6mY2UeJEjjL/?ref=app
2 Respuestas
+ 3
you want to check if the counter is equal to or more than 2 in the loop. You are only checking after the loop is done. Also, line 44 the increment operator is written incorrectly.
https://code.sololearn.com/c6W87gDzwh8J/?ref=app
+ 3
Choe Thanks! I got it