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.

Triplet of three numbers (a,b,c)

–1 vote
asked Aug 1, 2019 by Arjun
Input : Triplet of three numbers (a,b,c)
Output : 1 if a>b>c
              0, otherwise

3 Answers

0 votes
answered Aug 1, 2019 by anonymous
#include<stdio.h>

int main()

{

int a,b,c;

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

if(a>b && b>c)

printf("1");

else

printf("0");

return 0;

}
0 votes
answered Aug 1, 2019 by anonymous
template <typename T, typename U, typename V> bool func(const T& a, const U& b, const V& c){

return a>b && b>c;

}
0 votes
answered Aug 1, 2019 by anonymous

#include<stdio.h>

int main() {

int a,b,c;

if(a>b>c)

{

printf("1)");

else 
{

printf("0")

}

return 0;

  1. }
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.
...