60.8k views
0 votes
Basic python coding

What is the output of this program? Assume the user enters 2, 5, and 10.
Thanks in advance!
:L

Basic python coding What is the output of this program? Assume the user enters 2, 5, and-example-1
User Darkerstar
by
5.2k points

1 Answer

10 votes

Answer:

17.0

Step-by-step explanation:

after first loop numA = 0.0 + 2 = 2.0

after second loop numA = 2.0 + 5 = 7.0

after third loop numA = 7 + 10 = 17.0

User Hielke Walinga
by
4.5k points