+ 3

Acsending Order

I want to Write a c++ code that reads three numbers and puts them in Acsending Order..could anyone give me any idea?

9th Sep 2017, 11:19 AM
RiGeL
RiGeL - avatar
4 Respostas
+ 16
Yes you can.. or try something with ternary operator. Since you only want to sort 3 numbers.. if else can be done...
9th Sep 2017, 12:38 PM
Frost
Frost - avatar
+ 3
@Frost thank you alot..but can we do he same thing using IF ELSE instead of Arrays?
9th Sep 2017, 12:36 PM
RiGeL
RiGeL - avatar
+ 1
@Frost thnx but what is a ternary operator?
9th Sep 2017, 12:40 PM
RiGeL
RiGeL - avatar