expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 30

Typically, the value added to an accumulator variable is __________ .

a. 0

b. 1

c. the same for each iteration

d. different in each iteration

Step-by-step solution
Verified
like image
like image

Step 1 of 2

Accumulator

The accumulator is a variable that is used to gather or accumulate the values. So the value of an accumulator gets increased, iteration by iteration.

Hence the correct option is (d) different in each iteration .


Step 2 of 2

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon