C Language
#include<stdio.h> #include<conio.h> void main( ) { int a, b, c, d; clrscr( ); printf("Enter Three Numbers = "); scanf("%d %d %d", &a, &b, &c); d = a > b && a > c ? a: (b > c ? b : c); printf("Greatest Number = %d", d); getch( ); } /*OUTPUT*/ Enter Three Numbers = 10 20 30 Greatest Number = 30