To check the bigger number //Write a c program to demonstrate conditional operators or ternary operator :

 To check the biggest number :

//Write a c program to demonstrate conditional operators or ternary operator :


#include<studio.h>

int main()

{

int a,b,larger;

printf("Enter two numbers\n");

scanf("%d %d",&a,&b);

larger=(a>b)?a:b;

printf("The result is %d",larger);

}



Thanks   you   for   reading .   For   more   knowledge   click   here

 Learning C programming language from basics concept include with PROGRAMS:

 https://kodewithgy.blogspot.com/2024/09/learning-c-programming-language-from.html

Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post