C Program to find biggest of three numbers using nested If Else statement

Program

#include<stdio.h>
void main()
{
	int a, b, c;
	printf("Enter three numbers\n");
	scanf("%d %d %d", &a, &b, &c);
	if(a > b)
    {
        if(a > c)
            printf("a: %d is largest\n", a);
        else
            printf("b: %d is largest\n", b);
    }
    else if(b > c)
        printf("b: %d is largest\n", b);
    else
        printf("c: %d is largest\n", c);
}

Output 1

Enter three numbers
89
12
65
a: 89 is largest

Output 2

Enter three numbers
45
68
34
b: 68 is largest

Output 3

Enter three numbers
12
38
73
c: 73 is largest