Computer Science, asked by vikaskatiyar1977, 9 months ago

wap to print the sum of first 10 even number​

Answers

Answered by gaganadithyareddy9
0

Answer:

Hey! This is in python...

sum = 0

for i in range(11):

   if i%2 == 0:

       sum+=i        

print("Sum of all even numbers from 1 to 10 = ", sum)

# HOPE THIS HELPS!!

Similar questions