fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a[10],b=1;
  6. printf("Enter 10 integers:\n");
  7. for (int i = 0; i < 10; i++) {
  8. scanf("%d", &a[i]);
  9. if (a[i] >= a[i + 1])
  10. b = 0;
  11. }
  12. printf("The numbers are %s increasing order.\n", b ? "" : "not in");
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5300KB
stdin
1
2
3
4
5
6
7
8
9
0
stdout
Enter 10 integers:
The numbers are not in increasing order.