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

Which two operations are needed to write the expression that represents "five less than the quotient of a number and three"? multiplication and subtraction O di
What is the 24.What is the IUPAC name for H2SO4?
In what region do more than half the worlds people live?
(xii)What is meant by equilibrium?​
The development of agrarian societies brought about: SELECT ALL THAT APPLY A dependence on a constant water supply The formation of tribes The domestication of
-7 is a Real Rational Irrational Integer Whole Natural ?
Sun of all the genes of a population is :​
What is the image of (4,-7) after a transalation right 4 units and up 5 units
What is it??? I need help
In what Amendment is that right preserved?