Objective: C program to find out maximum and minimum using the divide and conquer method
Concept: The problem is to find the maximum and minimum number using the divide and conquer technique.
#include
#include
int main()
{
int i,j,a[100],max=0,min=1000,mid,n,max1,max2,min1,min2;
printf("enter the size of the array");
scanf("%d",&n);
printf("enter the elements of the array");
for(i=0;imax)
{
max=a[i];
}
if(a[i]max)
{
max=a[i];
}
if(a[i]