Prog#017: Smallest of three numbers

/* 
Program#17
Smallest of three numbers
*/

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