ashton100426owz1ly
03.12.2020 •
Computers and Technology
What does the following loop do?
val = 0
total = 0
while (val < 10):
val = val + 1
total = total + val
print(total)
Prints the numbers backwards from 10 to 1.
Prints the sum of the numbers from 1 to 10.
Finds the average of the numbers between 1 and 10.
Prints the numbers from 1 to 10.
Solved
Show answers
More tips
- W Work and Career Where can you learn to be a flight attendant?...
- C Cities and Countries What time does the Metro open in Moscow?...
- S Style and Beauty How to Get Rid of Under Eye Bruises?...
- F Food and Cooking How to Calculate the Gender of Your Child with Blood?...
- C Computers and Internet IMHO: What is it, why is it important, and how to use it?...
- H Health and Medicine Effective Ways to Treat Colic in Infants...
- H Health and Medicine How to Treat the Flu: A Comprehensive Guide...
- S Style and Beauty 5 Tips for Choosing the Best Ugg Boots...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- C Computers and Internet iPhone SMS Delivery Report: How to Set It Up...
Answers on questions: Computers and Technology
- C Computers and Technology The data for the ebook reader will need to be retrieved from a web service. The service is located at http://tmaserv. scem.westernsydney.edu.au/chapters/, which when called...
- B Biology Construct a complete analogy/ metaphor that demonstrates your understanding of how the impact of the pandemic on the functioning of the United States is similar to the...
- L Law Discus in detail why you think it is important or necessary to study the source of law of a given society....
- M Mathematics The first three terms of a sequence are given. Round to the nearest thousandth (if necessary). 352, 345, 338, ... Find the 37th term....
- C Chemistry Sources of energy can come from what?...
- M Mathematics Ryan received a bonus for excellent performance at work. He invested that bonus in shares of ABC Corporation. What type of income might Ryan receive from this investment?...
- M Mathematics 3/8 is equal to A) 0.222 B) 0.375 C) 0.444 D) 0.666...
- M Mathematics I need help with this...
- H History The Bill of Rights gives you the right to a speedy trial. True False...
- M Mathematics Ok can you see it now if so can you answer it ?...
Ответ:
Prints the sum of the numbers from 1 to 10.
Explanation:
YOU NEED BETTER INDENTATION
Total is the sum.
Each loop it's added
:)
Ответ:
False
Explanation