/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
/*N190684-M.Shakunthala
CSE-02*/
#include<stdio.h>
int i,n,max;
void gratest(int arr[],int n)
{
max=arr[0];
for(i=0;i<n;i++)
{
if(arr[i]>max)
{
max=arr[i];
}
}
printf("gratest element is: %d",max);
}
int main()
{
printf("enter no.of elements:");
scanf("%d",&n);
int arr[n];
printf("enter elements:");
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
gratest(arr,n);
}