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 the base of Apothecary
70-q-q-2q=80 We'll this is confusing
The resultant resistance of two resistance wires in series combination is 108 ohm and in parallel combination is 24 ohm. find the value of individual resistance
if a baking tray is 700mm by 600mm, how many of 25cm in diameter can fit into the baking tray?
biomedical definition
How do we call a very small video,that is repeating unlimitedely
What Is Ethane? Can you help me?
If 5x^2 - 15x = 0 and x ≠ 0, find the value of x. (A) -10 (B) -3 (C) 10 (D) 5 (E) 3
pls help me with this  11-3 and 11-4 u press the link below
Given 4 percent of (2a + b) is 18 and a is a positive integer, what is the greatest possible value of b?