New course! Every coder should learn Generative AI!
Try a free lesson+ 4
1. use } to close the if statement
2. don't use the second for loop at all (use i+1 index in the first for)
3. search the web for library functions that work with arrays (http://www.cplusplus.com/articles/NhA0RXSz/)