4-8-2

#include<stdio.h>

int main(void)

{

         int mark,max;

 

         printf("Enter marks:");

         scanf("%d",&mark);

         max=mark;

 

         while(mark>=0){

                   if(max<mark)

                            max=mark;

                   scanf("%d",&mark);

         };

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

 

         return 0;

}

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