#include<stdio.h>
#include<stdlib.h>
int main(int argc, char** argv) {
unsigned int days;
printf("please input number of data: ");
scanf("%d",&days);
int* temperatures = (int*)malloc(sizeof(int)*days);
int max = 1;
int temp = 1;
printf("please input No. 1 tempterature: ");
scanf("%d", temperatures);
for (int idxDay = 1; idxDay < days; idxDay++) {
printf("please input No. %d tempterature: ",idxDay+1);
scanf("%d", (temperatures+idxDay));
if (temperatures[idxDay] > temperatures[idxDay-1]) {
temp++;
}
else {
max = max >= temp ? max : temp;
temp = 1;
}
}
printf("the collected temperature keeps increasing in %d days.\n", max);
free(temperatures);
return 0;
}