Hello.
Did you copy the code from internet?
If so then I would suggest you should first learn about bubble sort and write your own code. Initially it may look difficult.
But as you step in...