1. Write a Program to Print 1 to n number using for loop in C language 
2. Write a Program to print first even number using for loop in C language 
3. Write a Program to print 1 to n number which divided by 5 using for 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 for loop     */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i,n;
     clrscr();
     printf("Enter n : ");;
     scanf("%d",&n);
     for(i=0;i<=n;i++)
     {
       printf("%d\n",i);
     }
     getch();
   }       
    

print 1 to n  number using for loop c Program - Program Code

print 1 to n  number using for loop c Program output - Program Code

print 1 to n  number using for 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 n even number using for loop   */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i,n;
     clrscr();
     printf("Enter n : ");
     scanf("%d",&n);
     for(i=0;i<=n;i=i+2)
     {
       printf("%d\n",i);
     }
     getch();
   }       

print first n even number using for loop c Program - Program Code

print first n even number using for loop c Program output - Program Code

print first n even number using for 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 for loop */
   #include<stdio.h>
   #include<conio.h>
   void main()
   {
     int i,n;
     clrscr();
     printf("Enter n : ");
     scanf("%d",&n);
     for(i=0;i<=n;i++)
     {
       if(i%5==0)
       {
printf("%d\n",i);
       }
     }
     getch();
   }

print 1 to n number which divided by 5 using for loop c program - program code

print 1 to n number which divided by 5 using for loop c program output - program code

print 1 to n number which divided by 5 using for loop c program output - program code

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