/* Note:Your choice is C IDE */
#include "stdio.h"
int max(int i1,int i2,int i3);
int min(int i1,int i2,int i3);
main()
{ int x,y,z,a;
printf("input three numbers\n\n\n");
scanf("%d,%d,%d",&x,&y,&z);
a=max(x,y,z);
printf("\n\nmax=%d\n",a);
a=min(x,y,z);
printf("\n\nmin=%d\n",a);
getch();
}
int max(int i1,int i2,int i3)
{
int m1;
if((i1>=i2)&&(i1>=i3)) m1=i1;
if((i2>=i1)&&(i2>=i3)) m1=i2;
if((i3>=i1)&&(i3>=i2)) m1=i3;
return(m1);
}
int min(int i1,int i2,int i3)
{
int m1;
if(i1<=i2)
{
if(i1<=i3) m1=i1;
else m1=i3;
}
else
{
if(i2<=i3) m1=i2;
else m1=i3;
}
return(m1);
}