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
Darren wants to substitute every occurence of the word bulky in his spreadsheet with the word strong. which of these options sho
Kaylis [27]
If you wanted to remove all the occurrences of bulky and replace them with the word strong. You would use replace all.
6 0
3 years ago
Which of these is a poetic device walt whitman often uses to emphasize certain ideas in his poems?a. meterb. alliterationc. rhet
Ivanshal [37]
Alliteration (apex) i just guessed on it and got it right
5 0
3 years ago
When you declare a variable of a basic, primitive type, such as int x = 10;, the memory address where x is located holds the ___
Nadya [2.5K]

Answer:

Answer is (d) value of 10

Explanation:

Usually when we write "int x=10;", a memory space is allocated for an integer variable with name x, and content 10.

8 0
3 years ago
Read 2 more answers
The best way to find out the average salary in your company is to perform a technique, known as Advanced Calibrated Sampling (AC
Setler [38]

Answer:

Agree

Explanation:

The best way to find out the average salary in your company is to perform a technique, known as Advanced Calibrated Sampling (ACS).

7 0
3 years ago
Who are the key players in the internet
Anna007 [38]
Gamers my dude, dank memes are also the internet's finest minds
4 0
3 years ago
Other questions:
  • Which of the following best describes cost-benefit analysis?
    9·1 answer
  • Which of these jobs would be most appropriate for someone who majors in computer engineering? I need the answer ASAP Helping com
    14·2 answers
  • What are the disadvantages of cloud computing?
    9·1 answer
  • Write an application that counts by five from 5 through 500 inclusive, and that starts a new line after every multiple of 50 (50
    13·1 answer
  • When activated, an Excel object has all the features of an Excel ______?
    9·2 answers
  • What happens if none of the selector values match selector in a simple case expression in pl/sql
    6·1 answer
  • Which of these is not an application software?
    6·2 answers
  • Type the correct answer in the box. Spell all words correctly.
    7·2 answers
  • What are ways to create a study schedule? Check all that apply.
    5·2 answers
  • Monica is writing a paper, and it needs to contain a certain amount of words. What Word Online feature can she use?IndentingProo
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!