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
Maru [420]
3 years ago
13

Write a pseudo code to print sum of all even numbers from 1 to 100

Computers and Technology
1 answer:
Vinil7 [7]3 years ago
5 0

(python) Answer:

sum = 0

for i in range 1 to 101:

 if i modulo 2 == 0:

   sum += i

print(sum)

Explanation:

first we declare the sum variable

then go through all numbers 1 through 100 (range 1 to 101 because python range does not include the last number - if we did 1 to 100 it would look at 1 to 99)

if the number is even (divide by 2, check if there's a remainder, if not it's even and we will add the number to the sum

finally print the sum

You might be interested in
When making decisions, it is important to remember that ______.
Makovka662 [10]

Answer:

I think it's no choice is perfect but I don't know.

Explanation:

Definitely not the last one, because making decisions doesn't mean you're the boss lol.

4 0
3 years ago
Read 2 more answers
What is the recommended solution to configure this automated behavior? UC has a requirement that an opportunity should have a fi
Dmitry_Shevchenko [17]
The answer will need to be workflow.
8 0
4 years ago
Which is a correct explanation of first lines?
tatyana61 [14]

The correct explanation of the first line in poems is; Choice B; The first lines determine all of the poet's subsequent choices.

<h3>Meaning of poem</h3>

By literature definition, a poem is a piece of writing in which the words are chosen for their beauty and sound and are carefully arranged, often in short lines which rhyme.

To ensure that these short lines in poems rhyme, the first line serves as a template and consequently, determines all of the poet's subsequent choices.

Read more on poems and first line;

brainly.com/question/4343450

8 0
3 years ago
Gretchen has just started making a new presentation in a series of PowerPoint presentations. The default formatting for text in
timurjin [86]

Answer:

text only

Explanation:

           

5 0
3 years ago
Java Eclipse homework. I need help coding this
erik [133]
What issues are u having... what part is challenging you
3 0
3 years ago
Other questions:
  • It is essential for a relay energized by alternating current to have
    13·1 answer
  • What is the standard markup language of the world wide web?
    14·1 answer
  • Q.No.3. A filling station (gas station) is to be set up for fully automated operation. Drivers swipe their credit card through a
    10·1 answer
  • Which one of the following statements referring to mobile Internet
    5·2 answers
  • What's a checked exception?
    14·2 answers
  • Expresa tu reflexión sobre la necesidad de un código de etica para la IA (inteligencia artificial) , oponia sobre los bots en la
    15·1 answer
  • Assume that you have 22 slices of pizza and 7 friends that are going to share it (you've already eaten). There's been some argum
    9·1 answer
  • Um ok that makes sooo much sence
    11·2 answers
  • Helppp plzz ajjsndndbsskdjf​
    11·1 answer
  • Web servers deliver web pages to your computer using a protocol known as ______. Select your answer, then click Done.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!