design an algorithm to find the sum of 50 odd numbers.
Answers
Answered by
0
Answer:
sum = 0
for i in range(1,51):
if i % 2 != 0 :
sum += i
print(sum)
Explanation:
Similar questions
Computer Science,
4 months ago
Science,
4 months ago
Math,
8 months ago
Geography,
1 year ago
Biology,
1 year ago