About 5,910,000 results
Open links in new tab
  1. while Loop in C - GeeksforGeeks

    Oct 8, 2025 · The while loop in C allows a block of code to be executed repeatedly as long as a given condition remains true. It is often used when we want to repeat a block of code till some condition is …

  2. C while and do...while Loop - Programiz

    Loops are used in programming to execute a block of code repeatedly until a specified condition is met. In this tutorial, you will learn to create while and do...while loop in C programming with the help of …

  3. C While Loop - W3Schools

    Loops are handy because they save time, reduce errors, and they make code more readable. The while loop repeats a block of code as long as a specified condition is true: In the example below, the code …

  4. While Loop in C Language (With Syntax and Examples)

    Learn about the While Loop in C Language with syntax and examples. Understand its functionality, structure, and applications to improve your coding skills.

  5. C - While Loop - Online Tutorials Library

    In C, while is one of the keywords with which we can form loops. The while loop is one of the most frequently used types of loops in C. The other looping keywords in C are for and do-while. The while …

  6. Loops in C: For, While, Do While looping Statements [Examples]

    Aug 8, 2024 · Looping Statements in C execute the sequence of statements many times until the stated condition becomes false. A loop in C consists of two parts, a body of a loop and a control statement. …

  7. While Loop in C Programming - Tutorial Gateway

    First, the compiler will check for the condition inside the C Programming While loop. If the condition is True, the statement or group of statements under the block will execute. If the condition is False, the …

  8. C while Loop - Learn C Programming from Scratch

    First, declare the n variable and initialize it to 0. Second, check if n is less than 5 before entering the loop. Third, display n and add 1 to it in each iteration. Repeat this cycle until n is not less than 5. …

  9. While loop in C programming - Codeforwin

    Aug 30, 2017 · while loop is an entry controlled looping construct. We use while loop to repeat set of statements when number of iterations are not known prior to its execution. It provides flexibility to …

  10. How to Use while Loops in C: Complete Beginner’s Guide with Examples

    In the C language, there are several types of loops, and among them, the while loop is ideal when the number of repetitions is not known in advance. This article explains the basics and practical use …