Commit 9b77745f authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 61fb62cd
...@@ -106,7 +106,7 @@ async function run() { ...@@ -106,7 +106,7 @@ async function run() {
let arrNew = [] let arrNew = []
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
let sums = 0 let sums = 0
for (let j = i + 1; j < arr.length; j++) { for (let j = i ; j < arr.length; j++) {
sums = sums + parseFloat(arr[j].profit) sums = sums + parseFloat(arr[j].profit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment