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

Which of the following represents the set of integers greater than or equal to -5? Multiple Choice: A. { -5,-6,-7….} B. {-5,-4,-3…. } C. { -5,-4,-3….3,4,5 } D.
is adding food coloring and oil into water is it a chemical or physical change?
how does hydrogen ion change into hydrogen atom plz answer as fast as you can
How did the expansion of railroads affect commerce?
Thirty subtracted from four times a number is greater than the opposite of 10
choose a counterexample to show the conjecture is false . the conjecture is : any number that is divisible by 4 is also divided by 8
what are some adjectives for describing a tent
10) Richard’s brain is 0.026 of his body weight. What percent of Richard’s body weight is his brain?
Why do foxes eat lizards?????
How is the entire noun clause used in the sentence? That these little creatures survive in these small pools of water is amazing. A. Subject B. Object of Prepos