#include "stdafx.h"
main()
{
int mark;
int n=0 ,sum=0 ;
int max=0 ,min=101;
for ( ; ; ) ;
{
cin>>mark;
if ( mark > 100 )
{
cout<<" Mark > 100 , Please reinput "<<endl;
break; \\这一行
}
if ( mark=-1)
{
break; \\这一行
}
n ++ ;
sum=sum + mark ;
if( mark > max )
max = mark ;
if( mark < min )
min = mark ;
}
sum=sum/ n ;
cout<<"max ="<<max<<" min = "<<min<<"sum="<<sum<<endl;
return 0
}
