// reads 10 numbers from user and says whether increasing or decreasing #include int main( ) { const int LENGTH = 10; int isIncreasing = 1, isDecreasing = 1; float prev, current; int i; for(i=0; i0 && current<=prev) isIncreasing = 0; if( i>0 && current>=prev) isDecreasing = 0; prev = current; } if( isIncreasing ) printf("Is strictly increasing\n"); else if( isDecreasing ) printf("Is strictly decreasing\n"); else printf("Not strictly monotonic\n"); return 0; }