C Program to Find the Largest Number in an Array

#include<stdio.h>
#include<conio.h>
void main()
{
int a[25], n,i, large;
clrscr();
printf("How many numbers you want to give? \n");
scanf("%d",&n);
printf("Enter all numbers: ");
for(i=0;i<n;i++)
scanf("%d",&a[i]);
large=a[0];
for(i=1;i<n;i++) if(a[i]>large)
large=a[i];
printf("The largest Number is %d",large);
getch();
}

Output:

C Program to Find the Largest Number in an Array