#include<iostream>
#include<iomanip>
int findMax(int *p,int n);
int calAverage(int *p,int n);
void main()
{
using namespace std;
int a[]={32,56,24,87,61,8,19,42,34,98};
cout<<"Max is "<<findMax(a,10)<<endl;
// cout<<"Average is "<<calAverage(a,9)<<endl;
}
int findMax(int *p,int n)
{
int max=*p;
for (int i=0;i<=(n-1);i++)
if (*(p+i)>max)
max=*(p+i);
return max;
}