Write a c program that input three numbers a,b,c then depending on x values if x=1 it sorts a,b,c in an increment from .if x=2 it sorts a,b,c in decremental from using: 1-if statement 2-conditional switch statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a c program that input three numbers a,b,c then depending on x values if x=1 it sorts a,b,c in an increment from .if x=2 it sorts a,b,c in decremental from using: 1-if statement 2-conditional switch statement

Any help ?

25th Aug 2016, 11:09 AM
miss comp engineer
miss comp engineer - avatar
2 Answers
0
Do you mean using both in one program or writing two program each one uses one of those?
25th Aug 2016, 6:18 PM
Raizel TheNoblesse
Raizel TheNoblesse - avatar
0
Write two program of each situation
25th Aug 2016, 6:26 PM
miss comp engineer
miss comp engineer - avatar