Computer Science, asked by bkabita632a, 3 days ago

Using while loop find how many odd numbers are there in the range off 1 to 1000​

Answers

Answered by SPRamgopal
2

Answer:

There are a total of 50 odd numbers between 1 to 100. 1 is the smallest odd number. Numbers that are not even, are odd numbers. The sum of odd numbers 1 to 100 is 2500.

Explanation:

Mark as brainst

Answered by Shivayalaya
2

Explanation:

#Using while loop in python to get the numbers of odd numbers in between 1 to 1000

i = 1

ctr = 0

while i <= 1000

i += 2

ctr += 1

print(ctr)

if you got your answer then please promote me

Attachments:
Similar questions