Answer to Question #292526 in C++ for barken

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.



1
Expert's answer
2022-01-31T11:28:04-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog