asked 193k views
5 votes
Whats the sum of all odd numbers between 1 and 1000

asked
User Rakim
by
8.5k points

1 Answer

4 votes
Answer: 250000

x=1y=0
while(x<=999): y += x x += 2
print(y)
answered
User Jacek Cz
by
7.9k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.