diff --git a/Move all the negative elements to one side of array.cpp b/Move all the negative elements to one side of array.cpp new file mode 100644 index 0000000..bf5b8f7 --- /dev/null +++ b/Move all the negative elements to one side of array.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; +int main() { + int n; + cin>>n; + int a[n]; + for(int i=0;i>a[i]; + } + int j=0; + for(int i=0;i