Posted on:

16 Jun 2021

0

For loops assignment was of no help

If sum is assigned the value of 0 (sum <- 0) then how does the end product become: 1,3,6 etc.
sum <- sum + i the sum inside the newly assigned sum is 0 to me regardless of what the vector is.

0 answers ( 0 marked as helpful)

Submit an answer

  • Javascript
  • Python
  • Ruby
  • PHP
  • Java
  • C
  • C#
  • C++
  • HTML
  • SQL
  • R
  • Shell