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]
2 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]2 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
What is the extension of Photoshop file?​
just olya [345]

Answer:

{\red{\mapsto{\maltese{\underline{\green{\boxed{\blue{\underbrace{\overbrace{\pink{\pmb{\bf{answer ✺✺✺✺✺:  \: :}}}}}}}}}}}}}

Explanation:

Photoshop format (PSD) is the default file format and the only format, besides the Large Document Format (PSB), that supports all Photoshop features.

6 0
3 years ago
To quit, a user types 'q'. To continue, a user types any other key. Which expression evaluates to true if a user should continue
devlian [24]

Answer:

!(key == 'q')

Explanation:

Based on the description, the coded expression that would equate to this would be

!(key == 'q')

This piece of code basically states that "if key pressed is not equal to q", this is because the ! symbol represents "not" in programming. Meaning that whatever value the comparison outputs, it is swapped for the opposite. In this case, the user would press anything other than 'q' to continue, this would make the expression output False, but the ! operator makes it output True instead.

3 0
3 years ago
Using a Mouse
MariettaO [177]
I think it might be A. mouse sorry if I get it wrong tho hope it’s right.
7 0
3 years ago
Read 2 more answers
Which of the following statements about networking IS CORRECT? A. Networking is only for professionals in certain careers. B. Ne
DENIUS [597]

Answer:

Toca un clip para pegarlo en el cuadro de texto.

6 0
3 years ago
Read 2 more answers
T-1 is the simplest WAN data service provided by telecom carriers. It has a data rate of
-Dominant- [34]
1.544Mb/s  (megabits per second)
6 0
3 years ago
Other questions:
  • Which is an example of withholding you might see on your pay stub
    14·2 answers
  • Which of the following statements is true?
    14·1 answer
  • You have a notebook computer and wish to connect to an IEEE 802.11ac wireless network. The computer does not have a built-in WLA
    15·1 answer
  • What is a filter in excel (please keep your answer brief)
    11·1 answer
  • Why should you be chosen over someone else? *
    5·2 answers
  • How i simplify this boolean expression ?A'.B'.C'+A'.B'.C+A'.B.C+A.B'.C+A.B.C
    6·2 answers
  • After a business transaction has been analyzed, which of the following must occur for the analysis to have been done correctly?
    9·1 answer
  • 5 efectos del desarrollo tecnológico en el medio ambiente
    14·1 answer
  • OCR Airlines allows passengers to carry up to 25kg of luggage free of charge. Any additional luggage is charged at £10 per kg. N
    8·1 answer
  • Mary and Billy are moving away to college and both know in their hearts that they need to end their relationship. They move away
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!