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

A sequence starting with 2.5 is shown below. 2.5, 5.0, 7.5, 10.0.....n which function represents the nth term of this sequence? f(n)=n/2.5 f(n)=n+2.5 f(n)=n-2.5
PLEASE HELP! Read the passage: From forth the fatal loins of these two foes A pair of star-cross'd lovers take their life; Whose misadventured piteous overthrow
What is the novel confession of nat turner about?
find the missing side length,when the area is 16 square units
Tony works 22 hours per week. His take home pay is $15.80 per hour. If Tony is able to save all of his earnings, how long will it take him to save at least $4,8
I need help real fast!!!! Please and Thank you!
What do oscar winning movies have in common?
Question 9 (Fill-In-The-Blank Worth 5 points) (06.04 LC) If s = unit and A = 18s2, what is the value of A, in square units? ____ square unit(s). (Input whole n
This Greek statesman ended the rule of the tyrants. 1 Cleisthenes 2 Phillip 3 Solon 4 Alexander
Which expression is equivalent to cube root of 27x^18 ?