Computer Science, asked by virajsingh2021, 9 months ago

Write a C program to find makimum between
three numbers.​

Answers

Answered by priyapayal0011
3

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)

Answered by sougatap57
0

Answer:

#include <stdio.h>

int main()

{

   int a,b,c;

   printf("enter the three numbers");

   scanf("%d%d%d",&a,&b,&c);

   if((a>b)&&(a>c))

   {

       printf("greater=%d",a);

   }

   else if((b>c)&&(b>a))

   {

       printf("greater=%d",b);

   }

   else

   {

       printf("greater=%d",c);

   }

   return 0;

}

Output

enter the three numbers 5 6 7

greater=7

Similar questions