Q9A. Consider the following algorithm: sum= = 0 for j in range(1,12): sum = sum + (9*j - 2) print(sum) What is printed as a result of executing this algorithm?

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter10: Sequences, Series, And Probability
Section10.5: The Binomial Theorem
Problem 14E
icon
Related questions
Question
Q9A. Consider the following algorithm:
sum = 0
for j in range(1,12):
sum = sum + (9*j - 2)
print(sum)
What is printed as a result of executing this algorithm?
Transcribed Image Text:Q9A. Consider the following algorithm: sum = 0 for j in range(1,12): sum = sum + (9*j - 2) print(sum) What is printed as a result of executing this algorithm?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning