#include<stdio.h>
int main()
{
int a[100],n,i,j;
printf(“enter the value of array:”);
scanf(“%d”,&n);
printf(“enter the value :\n”);
for(i=0;i<n;i++)
{
scanf(“%d”,&a[i]);
}
j=a[0];
for(i=1;i<n;i++)
{
if(j<a[i])
j=a[i];
else
j=j;
}
printf(“Largest element of array is :%d\n”,j);
}