Solved

What Will Be Printed When the Following Algorithm Is Processed

Question 4

Multiple Choice

What will be printed when the following algorithm is processed?
COUNTER = 0
DISTRIBUTION = 500
WHILE DISTRIBUTION > 200 AND COUNTER < 5
GIVEAWAY = DISTRIBUTION * .5
PRINT GIVEAWAY
DISTRIBUTION = DISTRIBUTION - GIVEAWAY
COUNTER = COUNTER + 1
WHILE-END


A) 250
B) 250,125
C) 150,125,62.5
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions