Sign in to run tests against edge cases and save your code automatically.
Problem Description
Easy
Is the Array Sorted?
PROSorting & Searching
1D & 2D Arrays
Linear Scan
Write a program that inputs 5 integers into an array and checks whether they are in **ascending order** (each value is less than or equal to the value after it).
Output `Sorted` if they are in ascending order, otherwise output `Not Sorted`.
Example Input
1
2
3
4
5
Example Output
Sorted
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.