#include <stdio.h>
int main()
{
int x=12, y=4 ;
y = ( x>y ? printf("x is greater than y") : printf("y is greater than x") ) ;
}C Programming
Program to compare 2 numbers without if statement.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
