Skip to main content

While Loops


While loops

In this part you will learn: 1. C syntax 2. While loops 3. More about Conditional Statements In this tutorial I will teach you about While loops. We will see two programs that use while loops. The first one will calculate the table of the number that user enters and the second one will calculate the average of a sum of numbers. Calculating Table Basic Step: Open Dev C++ then File > new > source file and start writing the code below.
  2. #include<stdio.h>&#13;
  3. #include<conio.h></conio.h></stdio.h>
These two are the most common and basic header files. The first one stdio.h is used to grant us most of

Add new comment

File attachments