4-8-1

# include<stdio.h>

int main(void)

{

         int i,mark,max,n;

         printf("Enter n:");

         scanf("%d",&n);

         printf("Enter %d marks:",n);

         scanf("%d",&mark);

         max=mark;

         for(i=1;i<n;i++){

                   scanf("%d",&mark);

                   if(max<mark)

                            max=mark;

         }

         printf("Max=%d\n",max);

         return 0;

}

posted @ 2013-10-04 18:26  zhaoyang16  阅读(96)  评论(0编辑  收藏  举报