//Max of an array
#include <stdio.h>
void reference(int[], int);
int main(){
int arr[100],n;
int i;
printf("Enter length of array : ");
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&arr[i]);
printf("\n%d ",arr[i]);
}
int max=arr[0];
for(i=0;i<n;i++){
if (arr[i]>max){
max=arr[i];
}
}
printf("\nMaximum : %d",max);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: