A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Write a program to find biggest values between two value enter through keyboard using ternary operator

C Programming

What is Ternary Operator?

Ternary Operator is x>y ? x:y
when x>y is true, then x value will be x otherwise y

Example of Ternary Operator:-

int main()
    //defining three variable
    float x,y,big;
    //write statement for console message
    printf("Enter the two numbers\n");
    //now enter two values
    //compare these values using ternary operator
    big=(x>y ? x:y);
    //print the large number
    printf("\n Larger number is %f",big);


What is the Software to start coding and development using C Programming Langauge?

Download Dev C++ for development and coding