Skip to main content

Learning While LOOP


While LOOP

In this part you will learn: 1. While LOOP 2. C syntax 3. Showing output In this tutorial I will teach you how to use while loops in C. We have already covered for loops and now we know what are loops What is a WHILE LOOP ? First of all we will talk about what is while loop. For a loop we need three statement initialization, condition and increment. In a while loop we only write the condition within the round brackets and increment within the body of the loop. We initialize the variable outside the loop. Checking for a prime number Basic Step: Open Dev C++

Add new comment

File attachments