Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ascending(int array[], int n) {
- for (int i=0; i < n-1; i++) {
- if (array[i] < array[i+1])
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement