Write a program that read an array & display maximum.

#include<stdio.h>
#include<conio.h>

void main()
{
    int n,i,a[100],max;
    clrscr();
    printf("How many numbers = ");
    scanf("%d",&n);

    for(i=0;i<n;i++)
    {
       printf("\na[%d] = ",i+1);
       scanf("%d",&a[i]);
    }
   
    max=a[0];
    for(i=1;i<n;i++)
       if(a[i]>max)
          max=a[i];

    printf("\nMaximum number of Arrays element = %d",max);

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........