Computer Science, asked by hardiksrivastav86, 5 months ago

Write a program in Python to find the sum of odd numbers from 9 to 15.

Answers

Answered by Anonymous
3

Answer:

a = 0

for i in range(9,16,1):

 a += i

print(a)

Explanation:

PLZ MARK AS BRALIEST

Answered by rajeswaribr
0

Answer:

i=1

sum=0

while i<=10:

   if i%2!=0:

       sum=sum+i

   i=i+1

print 'Sum of odd numbers',sum

Explanation:

Similar questions