Triplet of three numbers (a,b,c)

+2 votes
asked Aug 5 by anonymous
Input : Triplet of three numbers (a,b,c)
Output : 1 if a>b>c
              0, otherwise

1 Answer

0 votes
answered Aug 5 by anonymous
if(a>b)

{ print(1)

if(a>c)

{print(1)

else(1)}

else

(print(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.
...