#include #include "genlib.h" #include "simpio.h" bool IsSorted(int array[], int n); main() { int table[8]={1,2,3,3,4,5,5,6}; if (IsSorted(table,8)) printf("NAI\n"); else printf("OXI\n"); } bool IsSorted(int array[], int n) { int i; for(i=1;i