write a program to print the sum of odd no from
1-10 using while loop # fibonacci series
Answers
Answered by
3
counter = 1
_sum = 0
while counter < 11:
if counter % 2 != 0:
_sum += counter
counter += 1
print(f"sum: {_sum}")
Similar questions