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 the greatest common factor of 14, 22 and 26
1 = –(–w+6) a. –3 b. –7 c. 7 d. 3
53000 rounded of to the nearest ten thousand
what is the value 5 in 458
Which word is the interjection in this sentence? Oh, there's that tiny little dog again. a. that b. again c. there's d. Oh
Identify the subjunctive verb phrase in the sentence below. I wish I could fly to the moon a. could fly b. fly c. wish d. could
could you please translate into German: "I think that the food at the school canteen is mostly unhealthy"
At the zoo, there are 47 armadillos. If 39 of armadillos are female, how many armadillos are male? Write two different equations, and then solve.
Plz help! Estimate. Then find the sum or difference. 743.5 - 462.87= 98.01 + 52.003= 74.9 - 16.227=
How do you turn 0.26 into a fraction