From cabdc44391d9dc6f1a3a314c06ceb313db81f8a5 Mon Sep 17 00:00:00 2001 From: Tanuj wagadre <47408779+i-tanuj@users.noreply.github.com> Date: Thu, 17 Oct 2019 09:07:29 +0530 Subject: [PATCH] my changes --- Arrays Introduction.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Arrays Introduction.cpp diff --git a/Arrays Introduction.cpp b/Arrays Introduction.cpp new file mode 100644 index 000000000..329818f97 --- /dev/null +++ b/Arrays Introduction.cpp @@ -0,0 +1,34 @@ +//https://www.hackerrank.com/challenges/arrays-introduction/submissions/code/125864233 + +#include +#include +#include +#include +#include +using namespace std; + + +int main() { + int n,i,j,temp; + int arr[1000]; + cin>>n; + for(i=0;i>arr[i]; + } + j=i-1; + i=0; + while(i