Answer to Question #319263 in C++ for karabo

Question #319263

Identify an error in the following pseudocode: (2)

sum = 0

for x = 1 to 10

if y MOD 2 = 0

display y

sum = sum + y


1
Expert's answer
2022-03-29T07:40:59-0400
sum = 0

for x = 1 to 10

  if x MOD 2 == 0

      display x

      sum = sum + x
  endIF
endFor
display sum

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog