New course! Every coder should learn Generative AI!
Try a free lesson+ 5
Please tell my error in my code
2 Answers
+ 5
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?
+ 4
Thanks Anna