Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Practice List of Paytm Coding Questions !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

6 / 272

Write a program to find the sum of odd numbers between 100 and 1000.

Answer:

def sumofodd(a1,a2):
    result = 0
    for i in range(a1,a2 1):
        if i%3 == 0:
            result  = i
    return result

print(sumofodd(100,1000))

Asked In :: Accenture

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: