sahanaskumbar sahanaskumbar
  • 25-05-2024
  • Computers and Technology
contestada

Python program to calculate the sum of first ten even numbers by using the while loop

Respuesta :

dharitrim912 dharitrim912
  • 25-05-2024

sum =int(input (Enter number))

sum=oi= 0 while i<=num if 1%2=-0:

print(i) sum+= i i+=1

print(f"sum of all even number is(sum)

Answer Link

Otras preguntas

Suppose that triangle ABC is dilated to A’B'C’ by a scale factor of 1/2 with a center of dilation at the origin. What is the distance from the center of dilatio
How did ronald reagan's personality affect his presidency and public image? discuss reagan's domestic and foreign policies?
The base of a triangular prism is an isosceles right triangle with a hypotenuse of 32−−√ centimeters. The height of the prism is 6 centimeters. Find the surface
A disease that is transmitted from one person to another is called
Does autoimmune disorder affect from eosphilis gastroenteritis
What was the most significant reason for abandoning the rust belt for the sun belt?
Examine lines 3-13. Describe the grand celebration that Whitman tells about in these lines. Why are the crowds rejoicing?
Which is a component of RNA but not a component of DNA
How can groundwater depletion affect streams and water quality?
How many milliliters of .085 m naoh are required to titrate 25 ml of .072 m hbr to the equivalence point?