Created
July 24, 2017 11:17
-
-
Save MohamedTaha98/5370541caa6cd08f48c9b27b0eaa44bc to your computer and use it in GitHub Desktop.
This file contains 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> | |
#include <algorithm> | |
using namespace std; | |
int main () { | |
int n; | |
cin >> n; | |
int ar[n]; | |
for (int i = 0; i < n; i++) | |
cin >> ar[i]; | |
sort (ar, ar + n); | |
for (int i = 0; i < n; i++) | |
cout << ar[i] << " "; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment