Computer Science, asked by sahad19, 5 months ago

Write a program to find sum of all odd numbers between 1 to 200.
In a python ?​

Answers

Answered by ProblemUnlocker
1

Answer:

Here is the solution

num = 200

sum = 0;

for i in range(1, num + 1):

   if(not (i % 2) == 0):

       sum += i;

print("\nSum of odd numbers from 1 to", num, "is :", sum)

Please mark me as brainliest and do follow me

Similar questions