-
-
Save rhysforyou/2224621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| int num1, num2, num3 , num4, num5; | |
| bool sorted = true; | |
| do { | |
| if num1 > num2 { | |
| int temp= num1; | |
| num1= num2; | |
| num2= temp; | |
| sorted= false; | |
| } | |
| // And so on for each variable | |
| } while(sorted == false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment