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

Which resource management activity identifies and verifies that personnel are qualified.
1. Assuming that the company sells all that it produces, what is the profit function? 2. What is the domain of P(x) ? 3. The company can choose to produce eithe
Discuss four "problems" you have faced over the last few years
What is diction? OA. Word appearance B. Word choice OC. Word order D. Word sound Reset Selection
what is the area please help me
Natalia y Carmen no 1 of 1 muy bien al béisbol. (jugar)
Please please answer
Doppio Movimento, from Appalachian Spring, by Aaron Copeland, The main melodic line presents: A. After an initial jump, mostly conjunct motion B. Disjunct motio
The SQL SELECT built-in function COUNT ____.
When the forecast calls for freezing rain, salt is often spread on the roads. Why is this done?