January 12, 2024
Sort the integer array in ascending order
Threads: Write a program to input a sequence of n integers (By default, enter positive integer n). Print out a series of numbers arranged in ascending order.
Input: include 2 current, The first line is the integer n (n>= 1) is the number of elements in the sequence, second line 2 is a sequence of n integers, Each integer is separated by a space.
Output: Dãy số nguyên được sắp xếp tăng dần, mỗi số cách nhau bởi 1 dấu cách.
For example:
input: 5 3 5 2 7 1 output: 1 2 3 5 7
You are not logged in? Log in to Submit Now!