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

Elements that can be described by the hardness shininess and ductility
how much is half of 2.25
why do you subtract exponents when dividing powers with the same base?
Factor by grouping 5x+15+xy+3y
Roberto says that the opposite of a certain integer is -5. cindy concludes that the opposite of an integer is always negative explain cindy error
evaluat the statement scientists just perform experiments to prove what they already believe
what brought an end to the dominance of the silk road ?
If 6000 lb/day = t\wk what is the anwser
how many grams are in 9.5 kilograms
Differentiate between pseudoscience and science