program to sort array elements in ascending order
In this program, we are reading an array of integers and sorting array elements in ascending order.
Example:
Input array elements are:
50, 10, 20, 40, 30
Output:
Sorted array elements are:
10, 20, 30, 40, 50
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer