C program to find maximum number in an array.

C programming

#include<stdio.h>#include<conio.h>void main(){int i,max,a[5];clrscr();printf(“Enter elements of array:”);for(i=0;i<5;i++){scanf(“%d”,&a[i]);}max=a[0];for(i=0;i<5;i++){if(max<a[i]){max=a[i];} else max = max;}printf(“Maximum number in the given array is:%d”,max);getch();}   Here is the explaination of the code:- first of all we are declaring an array of size 5 you can take the size… Continue Reading