Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

WAP in C to find the Triplet of three numbers (a,b,c)

+1 vote
asked Aug 14, 2019 by 8888
INPUT: Triplet of three numbers(a,b,c)

OUTPUT :    1 if a>b>c   

                      0, otherwisw

1 Answer

0 votes
answered Aug 20, 2019 by SWengineer
char triplet(int a,int b, intc)


     return ((a>b) && (b > c)) ? 1:0;

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.