Please solve the compile time error in this program!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please solve the compile time error in this program!!!

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

17th Mar 2018, 6:22 AM
The Mir-acle
The Mir-acle - avatar
4 Answers
+ 6
Array index starts with 0, ends with n-1.
17th Mar 2018, 6:40 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Thank you very much Hatsy Rei and Tom, it works now
17th Mar 2018, 10:34 AM
The Mir-acle
The Mir-acle - avatar
+ 2
Replace line 12 with for (i = 0; i < n; i = i + 1) Did you get expected output?
17th Mar 2018, 6:31 AM
Sad
Sad - avatar
+ 1
You are welcome😀👍
17th Mar 2018, 10:40 AM
Sad
Sad - avatar