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

Why is clean coal technology a temporary solution? A. it burns the cold for a longer period of time B. it captures and stores the carbon dioxide C. It doesn'
Question ?????????????
larger cells will divide because they have trouble doing what
five sixths of a number is fifteen find the number
Personal experience and observation may be used as research sources true or false
how long will it take a seal swimming at a speed of 8 miles per hour to travel 52 miles
SOLVE EACH SYSTEM USING SUBSTITUTION 1.y=2x+19 y=x+7 2.x+2y=-7 x+y+23 3.x+5y=2 x=-4y+5 4.3x+y=9 y=-5x+9 show work plzhere are some steps to help youStep 1:Solve
Paula's dog, Toby, weighs 85 pounds. 1 pound (is about) 0.454 kilograms To find Toby's weight in kilo, what conversion factor should you use?
which important idea expressed by 17th and 18th century philosophers is not discussed in the declaration of independence
Which are Buddhist beliefs? Choose all answers that are correct. A. The path to happiness is through doing one's duty within one's class. B. The relationship be