C Program To Find Maximum Of Given Numbers

How to write a C Program To Find Maximum Of Given Numbers in C Programming Language ?


Solution For C Program :

/*C Program To Find Maximum Of Given Numbers*/

#include <stdio.h>
void main()
{
void max_three(int,int,int);
int a,b,c;
printf("\nEnter any Three Integers : ");
scanf("%d%d%d", &a, &b, &c);
max_three(a, b, c);
}
void max_three(int x, int y, int z)
{
int d;
if(x > y)
d = x;
else
d = y;
if(d > z)
printf("\nMaximum of Three Numbers : %d", d);
else
printf("\nMaximum of Three Numbers : %d", z);
return;
}


You may also learn these C Program/Code :

C Program To Swap Two Numbers Without Using Third Variable


Learn More :