- Design a C program that reads n integer values into an array and then determines and outputs whether the sequence entered is sorted in ascending order, descending order or is unordered. Here is a sample output.
How many integers do you have? 4
Enter the 1st integer : 10
Enter the 2nd integer : 8
Enter the 3rd integer : 6
Enter the 4th integer : 4
Your sequence is sorted in descending order.