+ 3

What's wrong with this . It's showing up "no output "

https://code.sololearn.com/c0Rm6nPHi0s1/?ref=app

11th Sep 2018, 12:06 PM
Aditya Prasad
Aditya Prasad - avatar
2 Answers
+ 4
I think it is n. It is used for input but reset to 0 in the for loop. maybe change this line like this: for( ; n>=1 ; n--){
11th Sep 2018, 12:13 PM
Paul
Paul - avatar
+ 2
yeah i tried it and it wprked . thanks !!
11th Sep 2018, 4:18 PM
Aditya Prasad
Aditya Prasad - avatar