Ask your own question, for FREE!
Mathematics 22 Online
OpenStudy (bahrom7893):

Polpak can you help me out?? Or joemath or alchemista or amistre or imran or any other person who knows C++. i'm pretty desperate right now..

OpenStudy (bahrom7893):

ANYONE??!!!!

OpenStudy (bahrom7893):

Okay, ill just try to crack this myself....

OpenStudy (anonymous):

Sorry, was afk. What's up?

OpenStudy (anonymous):

What I said before: if b < a: swap a and b if c < a: swap a and c if d < a: swap a and d #now for sure, a is the smallest of all 4. if c < b: swap b and c if d < b: swap b and d #now for sure b is the second smallest number. if d < c: swap c and d #now a < b < c < d

OpenStudy (anonymous):

this is pythonic psudo-code obviously, the swap parts will be implemented as you've been doing.

OpenStudy (anonymous):

This is basically an 'insertion sort' but done by hand since you don't have loops and arrays.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
4 hours ago 3 Replies 0 Medals
Arriyanalol: help
3 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 3 Medals
Jaded012023: Please tell me what you all think of this song
6 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
6 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!