Enter 3 numbers and print them in descending order without using "and (&)" operator.
Answers
Answered by
1
Answer:
if (a>b)
{
if(a>C)
sopln(a);
if (b>C)
sopln(b);
else
sopln(C);
}
else if (b>c)
{
if(b>a)
sopln(b);
if (a>C)
sopln(a);
else
sopln(C);
}
else if(c>a)
{
if(c>b)
sopln(c);
if(a>b)
sopln(a);
else
sopln(b);
}
Similar questions