#include
#include
#define LEN 20
int main(char argc, char *argv)
{
int i,j;
double avg;
int num[LEN];
int max = 0;
int sum = 0;
for(i = 0; i < LEN; i ++)
{
sacnf("%d",&num[i]);
}
for(j = 0; j < LEN; j ++)
{
sum += num[j];
if(num[j] > max)
{
max = num[j];
}
}
avg = sum/LEN;
printf("%d\t%d\t%f\n",sum,max,avg);
system("PAUSE");
return 0;
}