About 7,850,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 Loop - W3Schools.com

    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 …

  3. 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 …

  4. 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 …

  5. 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.

  6. 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 …

  7. Mastering the `while` Loop in C - CodeRivers

    In the world of C programming, loops are essential constructs that allow us to execute a block of code repeatedly. One of the most basic and widely used loops is the while loop. Understanding how to use …

  8. An Essential Guide to C while Loop statement By Practical Examples

    Here’s the syntax of the while loop statement: statement; How it works: The while statement first evaluates the expression. If the result is non-zero (true), the while statement executes the statement …

  9. 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 …

  10. While Loop in C Language - Tutorial Kart

    We already know that C While statement is a looping statement. It contains a condition based on which a decision is made whether to execute statement (s) inside while block or not. In the following …

  11. While loop in C programming Example - Free Code Center

    Aug 19, 2024 · In this paper, we will make an in-depth examination of how the while loop functions in C programming language, looking at its syntax, usage, and best practices.

  12. 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 …

  13. While loop in Programming - GeeksforGeeks

    Jul 23, 2025 · This mechanism allows for flexible iteration based on changing conditions within a program. In this post, we will explore the while loop, its syntax, functionality, and applications across …

  14. C While Loop - YourCodingMentor

    The while loop in C is a control flow statement that repeatedly executes a block of code as long as a specified condition is true. It is one of the most commonly used loops in C programming for scenarios …

  15. C while Loop statement | Learn Programming step by step

    C while is loop statement is used to do operations till some condition is true. For example, to print number for 1 to 100 we can use while loop statement. Syntax of while loop statement: Flowchart of …

  16. C Real-Life While Loop Examples - W3Schools

    To demonstrate a practical example of the while loop combined with an if else statement, let's say we play a game of Yatzy: Print "Yatzy!" If the dice number is 6: If the loop passes the values ranging …

  17. Loops in C - For, While, Nested Loops - CodeChef

    Aug 6, 2024 · In this guide, we'll explore different types of loops in C and how to use them effectively. A while loop executes a block of code as long as a specified condition is true. It's like telling the …

  18. While Loop In C Explained In Detail (+Code Examples) // Unstop

    In this article, we will focus our discussion on the while loop in C programming and help you understand how to use it in your own codes. We will provide comprehensive definitions, syntax explanations, …

  19. While loop in C - Introduction | PrepInsta

    While loop in C is defined as the conditional statement which allows to run the blocks of code in a defined or infinite number of times.

  20. While loop Syntax - GeeksforGeeks

    Jul 23, 2025 · In C and C++, the while loop executes a block of code repeatedly as long as the specified condition evaluates to true. The loop first evaluates the condition specified within the parentheses (). …

  21. 30 C++ Loops Exercises: Master for, while, & Nested loops – PYnative

    1 day ago · Master C++ looping with 30 practical exercises! Practice for, while, and do-while, nested loops to calculate factorials, Perfect for beginners and intermediate programmers.

  22. C Tutorial - TryMeYourSelf

    The break and continue statements in C are used to control the flow of loops. The break statement terminates the loop entirely, while the continue statement skips the current iteration and continues …

  23. C (programming language) - Wikipedia

    C is an imperative procedural language, supporting structured programming, lexical variable scope, and recursion, with a static type system. It was designed to be compiled to provide low-level access to …

  24. Bash while Loop: A Comprehensive Guide - linuxvox.com

    3 days ago · In the world of shell scripting, loops are indispensable tools for automating repetitive tasks. Among the loop constructs available in Bash (Bourne Again Shell), the `while` loop stands out for its …

  25. Man robbed 3 banks in the Loop on Monday morning, but failed twice: …

    Dec 4, 2025 · A man who received a 3-year federal prison sentence for robbing a bank in the Loop in 2021 is now accused of robbing 3 banks in the Loop on Monday morning, although two of those …

  26. Master Python Loops: A Comprehensive Guide to For and While Loops ...

    Jul 5, 2025 · Learn how to effectively use for and while loops in Python, including syntax, use cases, and common mistakes to avoid, to write cleaner and more efficient code.