Write a program in C to find the greatest of three numbers

Write a program in C to find the greatest of three  numbers

#include
#include
int main()
{
    clrscr();
    int number1, number2, number3;
    printf("Enter the values of number1, number2 and number3\n");
    scanf("%d %d %d", &number1, &number2, &number3);
    printf("You entered:\n");
    printf(" number1 = %d\n number2 = %d\n number3 = %d\n", number1, number2, number3);
    if (number1 > number2)
    {
        if (number1 > number3)
        {
            printf("Solution: First number %d is the greatest among the three numbers entered. \n",number1);
        }
        else
        {
            printf("Solution: Third number %d is the greatest among the three numbers entered. \n", number3);
        }
    }
    else if (number2 > number3)
        printf("Solution: Second number %d is the greatest among the three numbers entered. \n", number2);
    else
        printf("Solution: Third number %d is the greatest among the three numbers entered.\n", number3);
    getch();
    return 0;
}

Examples

Output of the C program to find the greatest of 3 numbers