-->
当前位置:首页 > 题库

PROGRAMMING:Sorting prime numbers in a [10] array

Luz5年前 (2021-05-10)题库445
Enter 10 positive integers into the a array to sort the prime numbers in the a [10] array in ascending order.
###Input format:
Enter 10 positive integers separated by spaces in a row, and only one space can be used between the data.
###Output format:
In a row, the output of ascending prime number sequence, each number output occupies 4 column width.
###Input example:
```in
9 5 1 6 4 8 7 2 9 11
```
###Output example:
```out
2 5 7 11
```






answer:If there is no answer, please comment