To Find Out Largest No. Out Of 3 Nos. Without Using If In C Language

#include<stdio.h>
void main()
{
int a,b,c,m;
clrscr();
printf("\n\n\n  Program To Find Out Largest No. Out Of 3 Nos. Without Using If In C Language");
printf("\n\n\n\t Please Enter The 1st No. : ");
scanf("%d",&a);
printf("\n\t Please Enter The 2nd No. : ");
scanf("%d",&b);
printf("\n\t Please Enter The 3rd No. : ");
scanf("%d",&c);
m = a>b?(a>c?a:c):(b>c?b:c);
printf("\n\n\n\t\t The Largest No. Is %d",m);
getch();
}

Comments