C Programs

Write a C Program which finds maximum number?


/* C Program which finds Maximum number*/
#include <stdio.h>
#include <conio.h>
int main()
{
      int array[] = {1,2,34,56,436,3};/* give input here*/
      int arry_size = sizeof(array)/sizeof(array[0]);
      int Maximum = array[0];
      int i;
      clrscr();
      for(i = 0; i<arry_size;i++)    {
         if(Maximum < array[i]){
            Maximum = array[i];
         }
      }
      printf("Max Number: %d ",Maximum);
      printf("\n");
      getch();
      return 0;
}
www.000webhost.com