dhakalkd1 dhakalkd1
  • 16-01-2020
  • Computers and Technology
contestada

write an algorithm to display the even number from 2 to 20
​

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 23-01-2020

Answer:

Step 1: START

Step 2: For I = 2 to 20

Step 3: if I %2 == 0

Step 4: PRINT I

Step 5: I= I + 2

Step 6: NEXT I

Step 7: STOP

Explanation:

The output of the above algorithm will be

2 4 6 8 10 12 14 16 18 20

Above, we are using the for loop, and it starts with I =2, and with every iteration I is incremented by 2. And hence, we get the above output.

Answer Link

Otras preguntas

origen y evolucion del sistema solar
What's 13/15 as a recurring decimal? Also I need working out
You have an aquarium in the shape of a rectangular prism. The base is 4 feet by 2 feet. The height is 3 feet. How many square feet of glass were used to build t
Why might a major volcanic eruption lead to cooler temperatures over a large area around the volcano ?
what is a computer??????????????????????????????????????????????????????????
What is the correct definition of a motif
Evan's desk drawer has 9 fountain pens. There are 5 more ball pens than fountain pens. There are also 6 more pencils than fountain pens. How many pens are the
What is a downward fold of a rock called?
What is the difference between jet streams and global wind belts
-5+-2 minus 2a =14a they are negative numbers