May 30, 2021
Sort the array in ascending
Threads: Write a program to input an array of integers. Sort the array in ascending order
Input: include 2 current, The first line is an integer number of elements of the sequence, second line 2 is a sequence of n integers (n>=1), Each integer is separated by a space.
Output: is a line that records the sequence of integers in ascending order.
For example:
input: 5 2 5 1 10 3 output: 1 2 3 5 10
You are not logged in? Log in to Submit Now!