Sunday, December 13, 2015

Do While Statement in C Language

A sample program that I wrote in C programming language to show how to declare and use the do while looping statement. The code is very simple I intended for beginners in C programming.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.
  

Program Listing

 #include <stdio.h>
#include <stdlib.h>

main()
{
int number=0;
system("cls");

number = 1;
do
{
 printf(" %d " ,number);
 number=number+1;
}while (number <=10);

printf("\n\n");
system("pause");
}

No comments:

Post a Comment