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

Factor the polynomial: x^3+x^2+x+1
What is the term used to describe the distance between objects? A. Line B. Contrast C. Space
please help ASAP Fill in the blank: Rudolph has a red ____. It is big with a red tip. He also has lots of brothers. His favorite is his sister cause she is fun.
what happened as a result of anti-chinese legalization?
Graph the line passing through the given point and having the indicated slope. through (3​, ​negative 2​) with slope minus−three fifths 3/5
The first word of the scientific name is capitalized, functions as a(n) , and tells the of the organism
Given: m∠AOB = 35°, m∠BOC = 50°. Find: m∠FOD.
According to "How to Write a Great Essay Quickly," it is important to... Question 8 options: focus on the prompt, write as much as you can on the topic, and org
While legal experts recommend a felony caseload of no more than ________ per attorney per year, some attorneys represent upwards of 1,000 indigent defendants in
three contributing factor that led to xenophobia ​