Computer Science, asked by divyaverm140504, 5 months ago

write a program to print the sum of odd no from
1-10 using while loop # fibonacci series​

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

counter = 1

_sum = 0

while counter < 11:

if counter % 2 != 0:

_sum += counter

counter += 1

print(f"sum: {_sum}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions