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