diff --git a/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp b/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp new file mode 100644 index 0000000..68df51d --- /dev/null +++ b/Searching_and_Sorting/Sort_the_array_0f_0's_1's_and2's.cpp @@ -0,0 +1,25 @@ +#include + +using namespace std; + +int main() + +{ int n; + + cin>>n; + + int a[n]; + + for(int i=0;i>a[i];} + + sort(a,a+n); + + for(int i=0;i