int max(int a[],int size) { int max=a[0]; for(int i=1;i<size;++i) { max=max<a[i]?a[i]:max; } return max; }