Showing posts with label while loop in c. Show all posts
Showing posts with label while loop in c. Show all posts

Tuesday, March 28, 2017

While Loop in C

Hi there in this article I will show you how to use While loop statement using C language. Looping statements is very important in any programming language it allows us to repeat a certain command in our program. What does the program will display a series of numbers from 1 to 10. The code is very easy to understand and use. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Sample Program Output

Program Listing

#include <stdio.h>

int main()
{
    int a=1;

    printf("\n\n");
    printf("\tWHILE LOOP STATEMENT IN C");
    printf("\n\n");

    while (a<=10) {
        printf("Loop Iteration No. %d  ",a);
        printf("\n");
    a++;
    }
    printf("\n\n");
    printf("End of Program");
    printf("\n\n");
}