+ 1
My code is not working perfectly please help me
5 Respuestas
+ 2
you are welcome!
+ 1
In line 11 better make
for(int i=n-1; i>=0; i--){
instead of
for(int i=n-1; i>=n; i--){
Then it works perfectly!
+ 1
Of course! Input: 3 3 8 7!
What does not work like you want it?
0
Nothing happened after change
0
Actually I was giving input without space now my code is working perfectly thank you so much