1.

Write a program in c to find greatest of three numbers using if else statements

Answer»

Explanation:

The program output is also shown below. * C program to find the BIGGEST of three numbers. int num1, NUM2, num3; printf("ENTER the VALUES of num1, num2 and num3\n"); SCANF("%d %d %d", &num1, &num2, &num3); printf("num1 = %d\tnum2 = %d\tnum3 = %d\n", num1, num2, num3); if (num1 > num2) if (num1 > num3)



Discussion

No Comment Found