Ask your own question, for FREE!
Mathematics 11 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!
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!