Write a program to get the sum of first 10 even numbers.

count = 0

num = 1

total = 0

while count < 10:

if num % 2 == 0:

count += 1

total += num

num += 1

print(total)

total=0

i=0

num=0

while i<=10:

num+=1

if num%2 == 0:

total+=num

i+=1

print(total)

for i in range(1,11):

if (i%2==0):

print(i,end=" ")

i=1

sum=0

while i<11:

if i%2==0:

sum+=i

print(sum)

i=+1

sum = 0

for i in range(1,11):

if(i%2==0):

sum += i

print(sum)

i=0

a=2

s=0

while i<10:

s=s+a

i=i+1

print(sum)

sum=0

n=1

while n<=10:

sum+=(2*n)

n+=1

print(sum)

count = 0

for num in range(1, 101):

if num % 2 == 0 and count != 10:

print(num)

count = count + 1

val = 1

while(i <= 10):

print(2 * i)

val = val + 1

count = 0

n= 0

a= 2

while count < 10:

n+=a

a+= 2

count += 1

print(“Sum of the first 10 even no.:”, n)

sum = 0

num = 2

count = 0

while count < 10:

sum += num

num += 2

count += 1

print(“Sum of the first 10 even numbers:”, sum)

```
count=1
i=1
sum=0
while true:
if i%2==0::
sum += i
count++
i++
if count > 10:
break;
print(sum)
```

i = 1

count = 0

sum = 0

while count<10:

if i%2==0:

sum+=i

count+=1

print(sum)

i+=1

print("sum of first 10 even numbers is: ", sum)