What is the mistake please help?

https://ide.codingblocks.com/s/362951

this code is not able to sort.

moreover i am weak at arrays please tell me 3 easy questions on the internet i should practice before CODING BLOCKS challenges

remove the break statements from the if else loops ,they are breaking the while loop.
to get better at arrays just go through all your videos and solve the questions in the order given .
if you still need help
you can go start with these:https://www.geeksforgeeks.org/array-data-structure/

Thank you very much !! i will look into the concept and questions from CB again first then try and solve GFG

1 Like