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

In the early 1790s, Alexander Hamilton wanted to create a national bank that could
QUESTION 3 A large system of stars held in place by mutual gravitation. IT
What us the slope of this line
Raising money to fund their programs, providing education, providing service to those affected, and advocating are the basic objectives of:
Ethan buys a video game on sale. If the video game usually costs $39.99, and it was on sale for 20% off, how much did Ethan pay?
How do bedside shift change reports improve care? A. by validating patient information during shift changes B. by making the patient more comfortable with the
what is the common denominator for 1 1/3 and 1 3/4
a soda machine makes 2/3 gallon of soda every minute. the total amount y that the machine makes in x minutes is given by the equation y=2/3x. determine whether
What kind of mutation has occurred during the DNA replication shown in the diagram
Need answer asap Cells differentiate and become specialized in unicellular organisms.True False