TK Study

Multiple choice › Pseudocode

Pseudocode

1. Pseudocode

What is the value of Total after this pseudocode runs? Total = 0; FOR i = 1 TO 4; Total = Total + i; NEXT i

  1. 10
  2. 6
  3. 4
  4. 24
Answer

A

1 + 2 + 3 + 4 = 10.