What will be the value of total after the following statements have been executed? total = 0 for x = 1 to 45 step 11      total = total + 5      do while total < 33          total = total + 13      loop next x total = total + x Select one: a. 64 b. 104 c. 56 d. 59

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
100%

What will be the value of total after the following statements have been executed?

total = 0

for x = 1 to 45 step 11

     total = total + 5

     do while total < 33

         total = total + 13

     loop

next x

total = total + x

Select one:
a. 64
b. 104
c. 56
d. 59
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning