About 234,000 results
Open links in new tab
  1. While loop in Programming - GeeksforGeeks

    May 17, 2024 · The while loop is a fundamental control flow structure in programming that allows a block of code to be executed repeatedly as long as a specified condition remains true. Let's …

  2. While loop - Wikipedia

    In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be …

  3. Algorithmic Thinking: Loops and Conditionals. x = x + y. print("Woof") What determines how many times “Woof” is printed is the number of elements in the range. Any expression that gives 5 …

  4. Programming - While Loop - University of Utah

    The while loop is used to repeat a section of code an unknown number of times until a specific condition is met. For example, say we want to know how many times a given number can be …

  5. 8 Python while Loop Examples for Beginners | LearnPython.com

    Feb 5, 2024 · What is a while loop in Python? These eight Python while loop examples will show you how it works and how to use it properly. In programming, looping refers to repeating the …

  6. Python While Loops - W3Schools

    With the while loop we can execute a set of statements as long as a condition is true. Note: remember to increment i, or else the loop will continue forever. The while loop requires …

  7. Loops Explained: For, While, and Do-While Loops in Depth

    In this comprehensive guide, we’ll dive deep into the three main types of loops: for loops, while loops, and do-while loops. We’ll explore their syntax, use cases, and best practices, helping …

  8. What is a While Loop? - Alooba

    While loops are powerful constructs that help programmers automate repetitive tasks and make their code more concise and efficient. With a clear understanding of while loops, one can …

  9. Exploring While Loops in C: Examples, Do's & Don't - Newtum

    Oct 27, 2023 · In C programming, a while loop is a control flow structure that allows a specific block of code to be executed repeatedly as long as a given condition remains true. It provides …

  10. Understanding While loop in C - ScholarHat

    Jan 23, 2025 · The while Loop is an entry-controlled loop in C. This loop is used to iterate a part of the code while the given condition remains true. The test takes place before each iteration. In …

Refresh