Can solve this in Programming c

Write two function definitions called Max() and Min(). Both functions receive three integer values from main(). Function Max() determines which value is the largest value, while function Min() determines which value is the smallest value. Both largest and smallest values should be returned to the main().

int max(int a, int b, int c){
if(a>b && a>c)
return a;
if(b>c)
return b;
return c;

}
int min(int a, int b, int c){
if(a<b && a<c)
return a;
if(b<c)
return b;
return c;
}

Are you looking for this?

1 Like

#include<stdio.h>
int max(int a,int b,int c);
int min(int a,int b,int c);
int main()
{
int g,e,f;
printf(“Enter the numbers”);
scanf("%d%d%d",&g,&e,&f);
int large=max(g,e,f);
int small=min(g,e,f);
printf(large);
printf(small);
return 0;
}
public int max(int a, int b, int c)
{
if((a>b)&&(a>c))
{
return a;
}
else if((b>a)&&(b>c))
{
return b;
}
else
{
return c;
}
}
public int min(int a, int b, intc)
{
if((a<b)&&(a<c))
{
return a;
}
else if((b<a)&&(b<c))
{
return b;
}
else
{
return c;
}
}
}

This might work;