Program to find the greatest number between 3 numbers.

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

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

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

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

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

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

getch();
}