From c3416f650151f73b46857401bab8dd0d42f3d6e7 Mon Sep 17 00:00:00 2001 From: AdithyakrishnaV Date: Thu, 23 Sep 2021 13:47:20 +0530 Subject: [PATCH] reverse array --- reverse_array.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 reverse_array.cpp diff --git a/reverse_array.cpp b/reverse_array.cpp new file mode 100644 index 0000000..d024755 --- /dev/null +++ b/reverse_array.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; + +int main(){ + int n; + cin>>n; + int arr[n]; + + for(int i=0;i>arr[i]; + } + + for(int i=0;i