Computers and Technology

Write a while loop that adds the first 100 numbers (from 1 to 100) together. To do so, use a while loop that continues while the condition of cur_num being less than or equal to stop_num is True. Inside the loop, it should add cur_num to the running total variable, and also add 1 to cur_num. Make sure to check at the end that the value of total reflects the total summation.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 13:10, hannahhoskings6989
Java g array testgrades contains num_vals test scores. write a for loop that sets sumextra to the total extra credit received. full credit is 100, so anything over 100 is extra credit. ex: if testgrades = {101, 83, 107, 90}, then sumextra = 8, because 1 + 0 + 7 + 0 is 8.
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, kameronstebbins
Which tab should you open to find the option for adding a header?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, gabby640
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, JakeCline
Which of the following is not a key player in the sale of travel products?
Answers: 2
Do you know the correct answer?
Write a while loop that adds the first 100 numbers (from 1 to 100) together. To do so, use a while l...

Questions in other subjects:

Konu
Mathematics, 11.03.2021 20:10
Konu
Chemistry, 11.03.2021 20:10
Konu
Mathematics, 11.03.2021 20:10