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
Political Science,
1 month ago
English,
3 months ago
Computer Science,
3 months ago
Biology,
10 months ago
India Languages,
10 months ago