Question: In each case, determine the problem and fix the errors. // This program is supposed to display every fifth year / / starting with 2017;

In each case, determine the problem and fix the errors.

// This program is supposed to display every fifth year /

/ starting with 2017; that is, 2017, 2022, 2027, 2032,

// and so on, for 30 years.

start

Declarations

num year

num START_YEAR = 2017

num FACTOR = 5

num END_YEAR = 30

year = START_YEAR

while year <= END_YEAR

output year

endif

stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!