Here is an algorithm for generating and printing even numbers between 1000 and 2000, along with their sum:
- Set a variable total to 0, and a variable current to 1000.
- While current is less than or equal to 2000, do the following:
- -> If current is even, print it to the standard output.
- -> Add current to total.
- -> Add 2 to current.
- Print the value of total to the standard output.
Here is a flowchart (attached) that outlines the steps of this algorithm: