From 9a8715920533680fd5ab13b2fbf903659c26ba10 Mon Sep 17 00:00:00 2001 From: Ruthwik Kancharla Date: Sun, 9 Oct 2022 21:40:12 +0530 Subject: [PATCH] Create SumOfArray.cpp --- ARRAY Problems/SumOfArray.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ARRAY Problems/SumOfArray.cpp diff --git a/ARRAY Problems/SumOfArray.cpp b/ARRAY Problems/SumOfArray.cpp new file mode 100644 index 0000000..97fb3e0 --- /dev/null +++ b/ARRAY Problems/SumOfArray.cpp @@ -0,0 +1,10 @@ +#include +using namespace std +int main(){ + int n,sum=0; + cin>>n; + int a[n]; + for(int i=0;i>a[i]; + for(int i=0;i