Skip to content
This repository was archived by the owner on Aug 26, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/arraySum.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>

using namespace std;

int main(){
int n;
cout << "Enter number of elements: ";
cin >> n;
cout << "Enter array elements: " << "\n";
int sum = 0;
for(int i=0;i<n;i++){
int x;
cin >> x;
sum += x;
}
cout << "Sum of array = " << sum << "\n";
}
Empty file added src/nextPrime.js
Empty file.