Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

write a loop that finds the sum of the numbers between 7 and 34

Sagot :

THIS IS FOR PYTHON

total = 0

for i in range(7, 35):

   total += i

   print(i)

print(total)

I forgot the reason but python always stops one number before your desired value. So that's why it's 35

The loop that finds the sum of the numbers between 7 and 34 i2 as follows:

x = 0

for i in range(7, 35):

   x += i

print(x)

   

The code is written in python.

The variable x is initialise with the value zero.

For loop is used to loop through the range of value 7 to 35, excluding 35.

The looped values are then added to the variable x

The final sum is then printed out using the print statements in python.

learn more on loop: https://brainly.com/question/21897044?referrer=searchResults

View image vintechnology