#include<stdio.h>
#include<conio.h>
int maximum(int,int,int);
int main()
{
int num1,num2,num3;
printf("enter hte three integer: ");
scanf("%d %d %d",&num1,&num2,&num3);
printf("Max is %d",maximum(num1,num2,num3));
getch();
}
int maximum(int x,int y,int z)
{
int max;
if(x>y && x>z)
{
max=x;
}
if(y>z && y>x)
{
max=z;
}
if(z>x && z>y)
{
max=z;
}
return max;
}
#include<conio.h>
int maximum(int,int,int);
int main()
{
int num1,num2,num3;
printf("enter hte three integer: ");
scanf("%d %d %d",&num1,&num2,&num3);
printf("Max is %d",maximum(num1,num2,num3));
getch();
}
int maximum(int x,int y,int z)
{
int max;
if(x>y && x>z)
{
max=x;
}
if(y>z && y>x)
{
max=z;
}
if(z>x && z>y)
{
max=z;
}
return max;
}