title: Amateur with this array algorithms in pseudocode, just started learning so I'm really unsure
body: <p>Was recently taught on array and I'm really lost, would love some advice!</p>
  <p>The algorithm AddMul6(A, n) is shown below. What is the value returned by AddMul6([3, 5, 7, 9], 4)?</p>
  <pre><code>AddMul6(A, n) {
  
  sum = A[0]
  
  for i = (1 to (n-1))   {
  
  sum = sum + i
  
  return sum
  
  }
  
  }
  </code></pre>
  <p>And just 1 more question as well similar in nature</p>
  <p>The algorithm CalVal1(x) is shown below, what is the value returned by CalVal1(5)?</p>
  <pre><code>CalVal1(x) {
  
  If  (x ≥ 5) 
  
  x = x +10
  
  else
  
  x = x + 100
  
  return x
  
  }
  </code></pre>