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

what is 3\13 times 143 equal
the bases of a softball field are 60 feet apart. How far apart is home plate from second base?
the cards in a card catalog are filed in what manner? A: by publication B: by subject C: alphabetically D: by call number
What is (7/12)/(5/9)? In simplest form..
find the slope of the line that contains (1,6) and (10, -9).
How do you say "Some brown spiders"?
PLEASE CHECK MY ANSWERS (PART 1)
please help Evaluate the expression when r = 8.2 and s = –3.7. r – 2s A. –22.94 B. 0.8 C. 4.5 D. 15.6
briefly describe Theodore Geisel's career in advertising
how is aluminium foil able to reduce heat loss through the walls of a house