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.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
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
Please
log in
or register to answer this question.
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;
}
Please
log in
or register to add a comment.
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;
}
Please
log in
or register to add a comment.
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;
}
Please
log in
or register to add a comment.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...