#include <stdio.h>
int main() {
int arr[10];
int isIncreasing = 1;
printf("Enter 10 integers:\n"); for (int i = 0; i < 10; i++) {
}
for (int i = 0; i <9 ; i++) {
if (arr[i] >= arr[i + 1]) {
isIncreasing=0;
break;
}
}
if (isIncreasing) {
printf("The array is in increasing order.\n"); } else {
printf("The array is not in increasing order.\n"); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgaW50IGFyclsxMF07CiAgICBpbnQgaXNJbmNyZWFzaW5nID0gMTsKCiAgICBwcmludGYoIkVudGVyIDEwIGludGVnZXJzOlxuIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspIHsKICAgICAgICBwcmludGYoIlZhbHVlICVkOiAiLCBpICsgMSk7CiAgICAgICAgc2NhbmYoIiVkIiwgJmFycltpXSk7CiAgICB9CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPDkgOyBpKyspIHsKICAgICAgICBpZiAoYXJyW2ldID49IGFycltpICsgMV0pIHsKICAgICAgICAgICAgaXNJbmNyZWFzaW5nPTA7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KCiAgICBpZiAoaXNJbmNyZWFzaW5nKSB7CiAgICAgICAgcHJpbnRmKCJUaGUgYXJyYXkgaXMgaW4gaW5jcmVhc2luZyBvcmRlci5cbiIpOwogICAgfSBlbHNlIHsKICAgICAgICBwcmludGYoIlRoZSBhcnJheSBpcyBub3QgaW4gaW5jcmVhc2luZyBvcmRlci5cbiIpOwogICAgfQoKICAgIHJldHVybiAwOwp9