Seudónimo Seudónimo
  • 19-10-2020
  • Computers and Technology
contestada

1) Write a program that prints the sum of the first ten positive integers, 1+2+...+10
I don’t know how to write the code for python

Respuesta :

Cytokine
Cytokine Cytokine
  • 19-10-2020

total = 0

for i in range(1, 11):

   total += i

print(total)

Ver imagen Cytokine
Answer Link

Otras preguntas

Write each, or phrase as an expression, equation, inequality. 1. six times a number is greater than 12 __________________ 2.the sum of 2 and the
Please help me with these I don’t understand!
Find the perimeter of the given triangle
I need help on this question plz
The claim is that the proportion of peas with yellow pods is equal to 0.25​ (or 25%). the sample statistics from one experiment include 480 480 peas with 127 12
Geometry math question no Guessing and Please show work thank you
The coefficient of kinetic friction between a suitcase and the floor is 2.76. if the suitcase has a mass of 71.5 kg, how far can it be pushed across the level f
When the location of a data source is defined as a(n) _______ location, excel will access the connection to the data source without prompting you to confirm tha
How does the excerpt from chapter 5 reveal the Time Traveller's initial theory of the social structure that exists in the future society he visits? What is his
Find the greatest perfect square that is a factor of the number 117