Write a program to find the whether the given integer list is sorted ascending order or not.
Input(Integer List) |
Output |
[10, 34, 23, 78, 56, 89] |
false |
[10, 23, 34, 56, 78, 89] |
true |
[-10, -23, -34, -56, -78, -89] |
true |
[-89, -75, -65, -56, -43, -11] |
false |
[] {EMPTY LIST} |
false |
null {NULL LIST} |
false |