/* write a program to print the maximum and minimum of three given numbers */
#include<stdio.h>
void main()
{
int a,b,c,min,max;
printf("enter any three numbers \n");
scanf("%d %d %d",&a,&b,&c);
min=((a<b)&&(a<c))?a:(b<c?b:c);
max=((a>b)&&(a>c))?a:(b>c?b:c);
printf("minimum: %d maximum: %d ",min,max);
getch();
}