please take 3 nubers and print numbers as ascending order descending order


USE TERNIARY OPERATORS ONLY
thans in advance

You can't do it with just ternary operators. You also need to use comparison operators.

please check in this terinary(?:) operator .we will write code
in this we will use swapping concept

Ooh, the swapping concept! WTF.

What have you got so far ?

i got the solution
that is

(a>b)?b=a+b-(a=b):0


that will give ascending order plz try

where is the third number?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.