#include <stdio.h>
int main() {
int arr[10];
int isIncreasing = 1; // Flag to check if the array is in increasing order
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; // Not in increasing order
break;
}
}
if (isIncreasing) {
printf("The array is in increasing order.\n"); } else {
printf("The array is not in increasing order.\n"); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgaW50IGFyclsxMF07CiAgICBpbnQgaXNJbmNyZWFzaW5nID0gMTsgLy8gRmxhZyB0byBjaGVjayBpZiB0aGUgYXJyYXkgaXMgaW4gaW5jcmVhc2luZyBvcmRlcgoKICAgIHByaW50ZigiRW50ZXIgMTAgaW50ZWdlcnM6XG4iKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkrKykgewogICAgICAgIHByaW50ZigiVmFsdWUgJWQ6ICIsIGkgKyAxKTsKICAgICAgICBzY2FuZigiJWQiLCAmYXJyW2ldKTsKICAgIH0KCiAgICBmb3IgKGludCBpID0gMDsgaSA8OSA7IGkrKykgewogICAgICAgIGlmIChhcnJbaV0gPj0gYXJyW2kgKyAxXSkgewogICAgICAgICAgICBpc0luY3JlYXNpbmcgPSAwOyAvLyBOb3QgaW4gaW5jcmVhc2luZyBvcmRlcgogICAgICAgICAgICBicmVhazsKICAgICAgICB9CiAgICB9CgogICAgaWYgKGlzSW5jcmVhc2luZykgewogICAgICAgIHByaW50ZigiVGhlIGFycmF5IGlzIGluIGluY3JlYXNpbmcgb3JkZXIuXG4iKTsKICAgIH0gZWxzZSB7CiAgICAgICAgcHJpbnRmKCJUaGUgYXJyYXkgaXMgbm90IGluIGluY3JlYXNpbmcgb3JkZXIuXG4iKTsKICAgIH0KCiAgICByZXR1cm4gMDsKfQ==