Computer Science, asked by rohini2057, 3 months ago

Write a Python program to print the sum of odd numbers from 2 to 20.​

Answers

Answered by Anonymous
0

Explanation:

x = 1

y = 20

for num in range(x, y + 1):

if num % 2 != 0:

#% is modulus

print(num)

Similar questions