C program to find greatest between three number using Ternary operator

void main()
  int x,y,z,a;
  printf("Enter First number:- ");

    printf("Enter Second number:- ");

    printf("Enter Third number:- ");

  a=(x>y && x>z ? x:y>z ? y:z);
  printf("Greatest number is:- %d",a);



greatest between three numbers

19 comments on “C program to find greatest between three number using Ternary operator

  1. online learning

    Hello There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely comeback.

  2. best gold to invest in

    Nice post. I was checking constantly this blog and I’m impressed! Extremely helpful information specifically the last part 🙂 I care for such information much. I was seeking this certain information for a very long time. Thank you and best of luck.

  3. learning styles

    Hello there, You have done a fantastic job. I’ll definitely digg it and individually recommend to my friends. I’m confident they will be benefited from this website.

  4. Hosted Landing Pages

    Hi, I do believe this is an excellent site.
    I stumbledupon it 😉 I’m going to return once again since i have book marked it.
    Money and freedom is the greatest way to change,
    may you be rich and continue to guide other people.

  5. lords mobile hacked apk download

    I really love your site.. Excellent colors & theme.
    Did you create this website yourself? Please reply back as I’m
    attempting to create my own site and want to learn where you got this from or exactly what the theme is called.



Leave a Reply

Your email address will not be published. Required fields are marked *