/* To find biggest of three numbers using Conditional Operator */ #include "stdio.h" #include "conio.h" main() { int a,b,c,result; clrscr(); printf ("enter the two numbers\n"); scanf("%d%d%d",&a,&b,&c); result=a>b? a>c?a:c:b>c?b:c; printf("%d is the biggest",result); getch(); } /* Note: We can do the above program by another way result=a>b? a:b; the biggest number is stored in result result1=result>c? result:c; printf("%d is biggest",result1); Exercise: 1. Smallest of two numbers 2. Smallest of three numbers */