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

What is meant by the average atomic mass of an element?
How did China control influence of European mechants
how do calculate the mass number of an atom
During the early 20th century, the _____ successfully lobbied for reforms to education, including increased years of mandatory attendance
what's a mushrooms main organism
What amendment extended suffrage to nearly half of all American citizens?
What are integers and how are they used to represent real-world quantities?
New financial assets like an initial public offering or a seasoned equity offering are initially offered on the A. futures market B. money market C. primary ma
A variation of a language spoken by a specific group of people is called a(n)
what explorer was influenced by The Travels of Marco Polo?