1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Eduardwww [97]
4 years ago
13

Write a program that loops one thousand times. add all the even numbers and display the results. add all the odd numbers and dis

play the results.
Computers and Technology
1 answer:
tekilochka [14]4 years ago
5 0
# Python v3

odd = 0
even = 0

for i in range( 1000 ): # Note: zero indexed!
    if( i % 2 ):
        even += i
    else:
        odd += i

print( "The even numbers add up to %d" % even )
print( "The odd numbers add up to %d" % odd )
You might be interested in
5
Tom [10]

Answer:

ما هو السؤال هنا؟

Explanation:

من فضلك أجب.

8 0
3 years ago
Read 2 more answers
What color does Sam obtain when he mixes white with a color? Sam is painting a landscape and needs to paint the sky light blue.
drek231 [11]
If you mix white with any color it makes it a lighter shade of that color. For instance mixing white + black = gray, which is a lighter color of black. 

Hope this helps,

kwrob <span />
6 0
4 years ago
Read 2 more answers
Key Categories: more libraries and thousands of functions
Vadim26 [7]

Answer:

2b2t

Explanation:

2b2t

6 0
3 years ago
A___________ is a person who can give information to potential employers about your character and your abilities. Employer emplo
il63 [147K]
I believe the answer is reference.
6 0
4 years ago
1
max2010maxim [7]

Answer:Go to the location where you want to save the file.

Explanation:

8 0
4 years ago
Other questions:
  • What are the advantages and disadvantages of using thermoset plastics
    14·1 answer
  • Anyone want to talk?
    13·2 answers
  • (The Location class) Design a class named Location for locating a maximal value and its location in a two-dimensional array. The
    10·1 answer
  • A _____________ is a method of controlled entry into a facility and provides access to secure areas such as a research lab or da
    6·1 answer
  • What internet access technology currently uses a technology called 4G?
    13·1 answer
  • Mha rp anyone? ima be baby shoto
    14·2 answers
  • Name at least 3 different portable computer devices that can be purchased
    15·2 answers
  • Tascake Gets Free Brainliest Because he didnt get it<br><br> Tascake Heres Brainliest
    6·2 answers
  • I NEED HELP W/ BINARY NUMBERS ‼️⚠️‼️⚠️‼️⚠️‼️ DUE IN 15 MINUTES
    13·2 answers
  • Does anyone know what's wrong with this code in Unity? HELP FAST PLEASE! This is for my game design course, I will give brainies
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!