简化下面的程序,我设计的太繁琐了

简化我设计的程序,这个程序太繁琐,输入需要花很多时间,求哪位帮我简化一下,谢谢
题目"输入10个数,求最大的数"

img


#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>

int main()
{
    int i,j,MAX=0;
    int arry[10];
    printf("Please input the arry[]:");
    for (i = 0; i < 10; i++)
    {
       scanf("%d",&arry[i]);
    }
    MAX = arry[0];
    for (j = 1; j < 10; j++)
    {
        if (arry[j]>MAX)
        {
            MAX = arry[j];
        }
    }
    printf("%d\n",MAX);
    system("pause");
    return 0;

}