#sorting arrays by ascending order

7 messages · Page 1 of 1 (latest)

midnight riverBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

coral slate
#
    for (int i = 0; i < 5; i++) {
        if (array[i] <= array[i + 1]) {
            continue;
        } else {
            return 0;
        }
    }
    return 1;
}```
#

nvm got it

#

!solved

midnight riverBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

midnight riverBOT
#
nt isSorted(int array[6]) {
    for (int i = 0; i < 5; i++) {
        if (array[i] <= array[i + 1]) {
            continue;
        } else {
            return 0;
        }
    }
    return 1;
}
.tenry