#include <stdio.h>
#include <windows.h>
int main()
{
int a[10 ] = { 1,2,3,4,5,6,7,8,9,10 };
int i = 0;
int max = 0;
for (i = 0; i < 10; i++)
{
if (a[i] > a[i + 1])
{
max= a[i];
}
else
{
max = a[i + 1];
}
}
printf("%d", max);
system("pause");
return 0;
}