Prog#029: Smallest of three numbers

/* 
Program#29
Smallest of three numbers
*/

#include <stdio.h>
main(){
int a,b,c,x,y;
printf("\nEnter three integers :");
scanf("%d %d %d",&a,&b,&c);
x=a<b?a:b;
y=x<c?x:c;
printf("\n%d : Smallest number\n",y);
}