#include<stdio.h>#include<conio.h>voidmain()
{
int a,b,c;
// clrscr();
printf("\n\nEnter The value of a,b,c\n\n");
scanf("%d%d%d",&a,&b,&c);
if((a>b)&&(a>c))
{
printf("a is maximum");
}
else
{
if ((b>a)&&(b>c))
{
printf("b is maximum");
}
else
{
printf("c is maximum");
}
}
getch();
}
Write a C Program to find maximum in 3 number using Logical Operator.
Reviewed by
on
August 30, 2019
Rating: 5