Question

// This program is supposed to display every fifth year // starting with 2017; that is,...

// 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

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Fixed .code

start

Declarations

num year

num START_YEAR = 2017

num FACTOR = 5

num END_YEAR = 30

year = START_YEAR

while year <= END_YEAR

output year

year = year + FACTOR

endwhile

stop

If you have any query regarding the code please ask me in the comment i am here for help you. Please do not direct thumbs down just ask if you have any query. And if you like my work then please appreciates with up vote. Thank You.

Add a comment
Know the answer?
Add Answer to:
// This program is supposed to display every fifth year // starting with 2017; that is,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT