Line 8: change n >= a - 1 to n <= a - 1
There's also something wrong with your use of curly braces. I don't think lines 13-17 are supposed to be part of the for loop?
17th Dec 2018, 8:02 AM
Anna
+ 4
Thanks Anna
18th Dec 2018, 8:15 AM
Saswata Biswas
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :