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

If you make $120 in tips after waiting on 6 tables what is you average tip per table?
yesterday is a.... (A) noun (B) verb
4r-2=4r-2 it's no solution??
What is the Bushido Code and how did it impact the samurai?
what are the major reservoirs of the carbon cycle
Math factoring help Can someone please help me factor this? I do want a step by step explanation and not just the answer. Factor x(2x-13)=-6 So I know you set
A gallon of water a room temperature Waze about 8.35 pounds Lena put 4.5 gallons in a bucket how much does the water weight
Which is a law and which is a theory 1.Plate Tectonics 2.For every reaction , there is an equal and opposite reaction 3.Evolution & Natural selection 4
what is a standard procedure for dividing a 2 digit divisor??? Explain.
what are polynomials?