1. Write a Program to Print 1 to n number using do while loop in C language 
2. Write a Program to print first even number using do while loop in C language 
3. Write a Program to print 1 to n number which divided by 5 using do while loop in C language .

1.

Write a Program to Print 1 to n number using do while loop in C language - Program Code

/* Write a Program to Print 1 to n number using do while loop    */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i=0,n;
     clrscr();
     printf("Enter N : ");
     scanf("%d",&n);
     do
     {
       printf("%d\n",i);
       i++;
     }while(i<=n);
     getch();
   }            

Print 1 to n number using do while loop C Program - Program Code

Print 1 to n number using do while loop C Program output - Program Code

Print 1 to n number using do while loop C Program output - Program Code

Program Code Download :- 
Download Program to Click Here....

2.

Write a Program to print first even number using do while loop in C language 

/* Write a Program to print first even number using do while loop     */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i=0,n;
     clrscr();
     printf("Enter n : ");
     scanf("%d",&n);
     do
     {
       printf("%d\n",i);
       i=i+2;
     }while(i<=n);
     getch();
   }      

print first even number using do while loop c program - Program Code

print first even number using do while loop c program output - Program Code

print first even number using do while loop c program output  - Program Code

Program Code Download :- 
Download Program to Click Here....

3.

Write a Program to print 1 to n number which divided by 5 using do while loop in C language - Program Code

 
/* Write a Program to print 1 to n number which divided by 5 using do while loop */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i=0,n;
     clrscr();
     printf("Enter n : ");
     scanf("%d",&n);
     do
     {
       if(i%5==0)
       {
printf("%d\n",i);
       }
       i++;
     }while(i<=n);
     getch();
   }


print 1 to n number which divided by 5 using do while loop C Program - Program Code

print 1 to n number which divided by 5 using do while loop C Program output - Program Code

print 1 to n number which divided by 5 using do while loop C Program output - Program Code

Program Code Download :- 
Download Program to Click Here....