Skip to main content
WAP to print ten natural numbers using "Do While Loop"
//WAP to print ten natural numbers using "Do While Loop"//
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
i=1;
do
{
printf("%d\n");
i=i+1;
}
while (i<=10);
getch();
}
- The Input and Output of this program is shown in the pictures below:- INPUT
OUTPUT
Comments
Post a Comment