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
In MLA formatting, which of the<br> following is correct?
sveticcg [70]

Answer:

what?

Explanation:

8 0
3 years ago
Lisa as a grade 6 student, not only knows how to read and write but also, she can solve problems critically proven from quiz bee
noname [10]

Hi, your question isn't quite clear and complete. However, I made general inferences.

<u>Explanation:</u>

Spelling bees are competitions that involve asking several contestants are asked to spell certain words, which have a varying degree of difficulty. However, if it involves rephrasing the sentence. It could read;

'Lisa is a grade 6 student that knows how to read and write and she can also solve problems, such as quiz bees which she had participated in and won.'

4 0
3 years ago
5. Which of the code excerpts below correctly links to an element with the id "awesome”.
Pachacha [2.7K]

Answer:

I think its click me

Explanation:

click me

6 0
3 years ago
Read 2 more answers
What is the difference between EDX and the OCW?
ohaa [14]
<span>OCW is the material used for various online courses offered by MIT, while EDX is the course itself in which you will be able to receive a certification if you passed all the requirements needed to be accomplished. In this course you are graded based on your knowledge.

</span>
7 0
4 years ago
From which tab can you format individual cell data like any other text? A.Design B. Home C. Table Tools Design D.Table Tools Lay
AysviL [449]
I think table tools design I'm not really sure sorry
6 0
3 years ago
Read 2 more answers
Other questions:
  • Keyboard shortcut could you use instead of clicking the icon
    11·1 answer
  • How are devices connected to each other via Bluetooth? Choose two answers.
    11·1 answer
  • A species of snake lives in a rainforest. Which would be an adaptation for this
    10·2 answers
  • 3.3 Code Practice: Question 1
    6·1 answer
  • William has created a page view style sheet and saved it in a file named esd.css. What tags should William add to the document h
    14·1 answer
  • Disk mirroring is a method of storing data that generates extra bits of data from existing data, allowing the system to create a
    14·1 answer
  • Translate function f into RISC-V assembly language. Assume the function declaration for g is int g(int a, int b). e code for fun
    10·1 answer
  • Information is data converted into useful, meaningful context. What are data characteristics that change or vary over time?
    8·1 answer
  • What is an internet marketing manager?
    14·1 answer
  • Why do we use if statements?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!