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

HELP ASAP PLEASE!!! Explain why molecules of alkenes and alkynes must have at least two carbon atoms while alkanes may contain only one carbon atoms.
Starting on the outside of the skull, use a flow chart to order the following list in the correct order that sounds would pass through them before they could be
Which of these is not used to describe a population? A. its size B. its migratory habits C. the spacing of its members D. its density
5x +3 ____ = -9 plz help these are impossible!! -2
20,21,23,23,25,29,32,33 -What is the outliner
Complete the formula. 6x2 + 7x - 9 = 0
15. The temperature C, in degrees, that is equivalent to a temperature of F degrees Fahrenheit is given by graph of this equation shows the temperature in Celsi
kate has 567 cars she put 77 on each table how many cars does she have left
which method of commercial fishing has a high rate of bycatch​
Can someone write an essay for me that’s due tomorrow