karrieblue karrieblue
  • 12-10-2020
  • Computers and Technology
contestada

How many times would the following loop iterate?
Set k = 1
While k < 5
Display k
Set k = k + 1
End While

Respuesta :

asarwar
asarwar asarwar
  • 13-10-2020

Answer:

The answer to this question is given below in the explanation section

Explanation:

The code is :

Set k = 1

While k < 5

Display k

Set k = k + 1

End While

this is a while loop, that will iterate 4 times and display the body of loop.  and at the fifth iteration, the loop condition does not meet the condition and the loop will get terminated.

Answer Link

Otras preguntas

How many carbon atoms are there in 3 molecules of CH3F?
14. I hosted a birthday party last Sunday and the guests ______ havoc on my house!
Please help. I need all the help I can get with my recent questions.
what is the value of k2+6 when k=3
does right circular cone have apex?
....................................
Mary bought a bag of rice for 9,000.00 and sold it for 6,300.00. What was her percentage loss?​
day of the builders:would you done the same thing if you were the narrator?
Which of the following is NOT a conjugate acid-base pair? Which of the following is NOT a conjugate acid-base pair? a.H2SO3/HSO3b.NH4+NH3 c.C2H3O2d.HC2H3O2 H3O+
What is the value of b in the equation -4 = 6 + b?