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

    Jul 23, 2025 · The while loop is a fundamental control flow structure (or loop statement) in programming, enabling the execution of a block of code repeatedly as long as a specified condition remains true.

  2. What Is While? - Computer Hope

    Sep 7, 2025 · A while loop or repeat loop is a loop statement in programming that performs a pre-defined task repeatedly until a condition is met. For example, in the Perl code below, a while loop …

  3. 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 relevant variables to be …

  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 divided by 2 …

  5. 30 C Programming Loops Exercises: Beginner to Advanced – PYnative

    1 day ago · Challenge yourself with 30 C programming loops exercises covering all difficulty levels. Practice for, while, do-while loops, if/else, and switch control flow, from beginner to advanced coding …

  6. What Are While Loops - Complete Guide - GameDev Academy

    Nov 18, 2023 · A while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. This loop will keep executing the block of code under it as long …

  7. While loop - Wikipedia

    In computer programming, a while loop is a control flow statement that allows code to be executed repeatedly based on a Boolean condition. The while loop can be thought of as a repeating if statement.

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

    While loops are used when you want to repeat a block of code as long as a certain condition is true. Unlike for loops, while loops don’t have a built-in counter, so you need to manage the loop’s …

  9. While Loops Explained - Cratecode

    Let's dive into what while loops are, how they work, and how to implement them in different programming languages. What is a While Loop? A while loop is a control structure that repeatedly …

  10. Understanding Python's While Loops: A Comprehensive Guide

    Mar 31, 2025 · This blog post will dive deep into the workings of `while` loops in Python, explore their usage methods, discuss common practices, and provide best practices to help you master this …