In this easy coded program, you will learn how to print even numbers from 1 to 20 using for loop.
---------------------------------------------------------------------------
Hope you found this 'C Program to Print Even Numbers from 1 to 20 using for Loop' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
---------------------------------------------------------------------------
Program to Print Even Numbers from 1 to 20 using for Loop
/*Even Numbers from 1 to 20- for Loop*/
|
|
#include<stdio.h>
|
|
void main()
|
{
|
int
i;
|
|
for(i=2;
i<=20;
i+=2)
|
printf("%d\t", i);
|
}
|
Output
2 4 6 8 10 12 14 16 18 20
---------------------------------------------------------------------------Hope you found this 'C Program to Print Even Numbers from 1 to 20 using for Loop' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Comments
Post a Comment
Please do not comment any spam links in the comment box.