Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Could someone explain how the answer was calculated

S = 0 for k in [1..3]: S = S+k S = 2*S S

Answer: 12

Could someone explain how the answer was calculated

S = 0 for k in [1..3]: S = S+k S = 2*S S

Answer: 12

Could someone explain how the answer was calculated

.

S = 0 
 for k in [1..3]:
      S = S+k 
 S = 2*S
    S

S

Answer: 12