Program to find the smallest number between 3 numbers.

#include <stdio.h>
#include <conio.h>
void main()
{
int a, b, c;
clrscr();

printf ("Enter three numbers to find the smallest: ");
scanf ("%d%d%d", &a, &b, &c);

if (a<b && a<c)
{
printf ("%d is the smallest number.", a);
}

else if (b<a && b<c)
{
printf ("%d is the smallest number.", b);
}

else if (c<a && c<b)
{
printf ("%d is the smallest number.", c);
}

else
{
printf ("An unknown error occurred!");
}

getch();
}