Created
November 11, 2020 18:40
-
-
Save mahmmoudkinawy/52f15d17106e2e4528d495f3c21fbcc2 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 arr[] = {10,20,-3,5,6,7,9}; | |
int size = sizeof(arr) / sizeof(arr[0]); | |
sort(arr,arr+size); | |
cout<<"Array After Sorting : "; | |
for(int i= 0 ; i < size ; i++) | |
{ | |
cout<<arr[i]<<" "; | |
} | |
cout<<endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment