Question #292526

write a pseudo code for a program which generates even numbers between 1000 and 2000 and then prints them in the standard output.it should also print total sum.



Expert's answer

Start
  Declare Real totalSum
  Set totalSum=0
  for i=1000 to 2000
    if i mod 2 = 0 then
      totalSum+=i
      Display i
    end if 
  end for
  Display totalSum 
Stop

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!

LATEST TUTORIALS
APPROVED BY CLIENTS