Program to sort an array in ascending order using bubble sort.

 

Sample Input
Enter number of elements
5
Enter 5 integers
2 3 1 6 4
Sample Output
Sorted list in ascending order:
1
2
3
4
6

 

You may also like...