3 greatest and smallest
// Program 3 : Finding the greatest and smallest number
#include<stdio.h>
void main()
{
int a , b , c , min , max ;
printf("Enter 3 Number : /n");
scanf("%d%d%d",&a,&b,&c);
min = a ;
if(b < min)
{
min = b ;
}
if(c < min)
{
min = c ;
}
printf("The Minimum Value is : %d /n",min);
max = a ;
if(b > max)
{
max = b ;
}
if(c > max)
{
max = c ;
}
printf("The Maximum Value is : %d /n",max);
}