Write a program to find the greatest of two numbers using conditional operator

#include < stdio.h>
int main()
{
int a,b,max;
printf("Enter values for a and b : ");
scanf("%d%d", &a, &b);
max = a>b ? a : b;
printf("Larger of %d and %d is %d \n", a, b, max);
return 0;
}