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
Get step-by-step solutions from verified subject matter experts
