Hello using conditional operators I want to make a program that ask user to input three values and print the maximum among those three values.
i have done for two values but dont know the logic for three values.
int main(void)
{
int a,b,c,d;
printf ("first value");
scanf ("%d",&a);
printf ("second value");
scanf ("%d",&b);
printf ("third value");
scanf ("%d",&c);
d=(a>b && a>c)? a:b;
printf ("%d",d);
how can i write a code for three conditions ?