#include<stdio.h>
int main()
{
int arr[] = { 1,3,4,5,7,8,9,10,12,2};
int max = arr[0];
int left = 0;
int right = sizeof(arr) / sizeof(arr[0]);
for (left = 0; left <= right; left++)
{
if (arr[left] > max)
{
max = arr[left];
}
}
printf("最大值为%d", max);
return 0;
}