void IncreSubSeq(int *a, int n) {
int count = 1, length = 1,index=0;
for(int i=0;i<n-1;i++)
if (a[i] < a[i + 1]) {
++count;//If the next number is larger, increase the count
if (count > length) {
length = count; index = i+1;//if the count > max, assign count-> length, update index
}
else {
count = 1;
for (int i = index-length+1; i <= index; i++)
cout << a[i] << "\t";//export result