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

Identify the factors that positive leadership takes into account to be successful.
shows a 100-turn coil of wire of radius 11cm in a 0.35T magnetic field. The coil is rotated 90? in 0.30 s, ending up parallel to the field. What is the average
Question 2 (Essay Worth 10 points) (05.02 MC) Use the image below to answer the following question. Find the value of sin x and cos y. What relationship do the
Electric room heaters use a concave mirror to reflect infrared (IR) radiation from hot coils. Note that IR follows the same law of reflection as visible light.
A surplus indicates that a government's finances are being effectively managed. The opposite of a budget surplus is a budget deficit, which commonly occurs when
Khushi is the office manager for a Grocery Distribution warehouse in a small town called Satna. Khushi's facility is part of a large Delhi-based conglomerate th
If 12.6cm on the map is equal to 1262km in real life, determine the unit scale of the map
Using mathematical induction, prove that n^3+2n is divisible by 3 for all integers n
two different ways to right -4n in words
Suppose that an insurance company views Jennifer as having the following distribution for the present value of losses: Loss = $5,000 with probability .10 $2,000