Prog#031: Smallest of three numbers

/* 
Program#31
Smallest of three numbers
*/

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