1.

Write a program for find greatest value among 3 values

Answer»

ANSWER:

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