Skip to content

Commit 3f10875

Browse files
authored
Update README.md
1 parent 10f2c95 commit 3f10875

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Online Programming/Sum of N/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
3. The space separated array elements are taken as input from user.
1010

11-
4. An integer type variable is declared and initialised with value 0 as no array element is added yet.
11+
4. An integer type variable called *sum* is declared and initialised with value 0 as no array element is added yet.
1212

1313
5. Now, a for loop is used to read each element starting from index 0 to N-1 and are simultaneously added to previous value of sum and array element present at that particular loop index.
1414

1515
6. Lastly, the variable sum which contains the final answer is printed as the output.
1616

1717
Find the link to the problem statement here: https://www.hackerearth.com/practice/basic-programming/implementation/basics-of-implementation/practice-problems/algorithm/array-sum-2-725368ac/
18+
19+
#HAPPYCODING ;)

0 commit comments

Comments
 (0)