Write a Python program to print the sum of odd numbers from 2 to 20.
Answers
Answered by
0
Explanation:
x = 1
y = 20
for num in range(x, y + 1):
if num % 2 != 0:
#% is modulus
print(num)
Similar questions
Math,
1 month ago
Math,
1 month ago
English,
2 months ago
Computer Science,
2 months ago
Biology,
9 months ago