i don't know c but i don't think is possible to compare 3 values at once
maybe a>b and a>c and b>c
Why the output of the following program comes False
PHP:#include<stdio.h> void main() { int a=15, b=10, c=5; if(a>b>c) printf("True"); else printf("False"); }
plzz tell me ... help needed
#include<stdio.h>
void main()
{
int a,b,c;
scanf(%d %d %d, &a, &b, &c);
if(a>b&&a>c)
printf("True");
else
printf("False");
}
#include<stdio.h>
void main()
{
int a,b,c;
scanf(%d %d %d, &a, &b, &c);
if(a>b&&a>c)
printf("A is Big");
else
if(b>c)
printf("B is Big");
else
printf("C is Big");
}
oh but
but when I write
if(a>b>>c)
the output becomes true ??
whyy ??![]()
can you type me the question please ?Froomple
actually my exam is next week
i got some previous year questions and tried to solve them
and found this question
the question was what was the output of the program ..
thanks to all of you epecially Techking
rep added for all![]()
i don't know c but i don't think is possible to compare 3 values at once
maybe a>b and a>c and b>c