Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Discover a wealth of knowledge from professionals across various disciplines on our user-friendly Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

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

Sagot :

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

Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.