nocapmeechy22 nocapmeechy22
  • 01-03-2022
  • Computers and Technology
contestada

A program has a infinite while loop. How can you interrupt it?

Respuesta :

Аноним Аноним
  • 01-03-2022

Answer:

The break keyword is how you interrupt a while loop.

the syntax looks like this ↓

Python ↓

while true:

break

Java script ↓

while (true);

break

Answer Link

Otras preguntas

In the formula e = hf, if e is doubled and f is halved, what happens to the value of h?
Which cells undergo cell division? a. prokaryotic cells only b. eukaryotic cells only c. cancer cells only d. both prokaryotic and eukaryotic cells
How do enzymes help to carry out biochemical reactions? A. By decreasing the energy of the reactants B. By increasing the activation energy of the reaction C. B
Estimate the angle of elevation from the trailhead to the summit.
How do you say little sister, little brother, older sister, and older brother in Korean? I hope someone who actually know Korean can answer this question.
How many prime numbers are there between 56 and 100?
A midwestern music competition awarded 35 ribbons. The number of blue ribbons awarded was 3 less than the number of white ribbons. the number of red ribbons was
When y = x^2, which of the following expressions is equivalent to –y ?
A boy can swim 75 feet in 12 seconds. What is his rate to the nearest mile per hour?
Which cells undergo cell division? a. prokaryotic cells only b. eukaryotic cells only c. cancer cells only d. both prokaryotic and eukaryotic cells