Completely Solved C, C++ Programs Assignment.




C Program to natural number from 1 to 10 by using while loop.

Filed Under:

Problem 27. C Program to natural number from 1 to 10 by using while loop.
#include<stdio.h>
#include<conio.h>
main( )
{
int a=0;
clrscr();
while( a<10)
{
a=a+1;
printf(“%dn”,a);
}
getch();
}

C compiler: gcc 4.1.2

 Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments