Simple C language Program To Find The Even Numbers In a Given Range
#include <stdio.h>/*Header File To Enable Standard Input Output functionality*/
#include <stdio.h>/*Header File To Enable Standard Input Output functionality*/
int n;/*For Given Number*/
n=10;
int i=2;
while(i<=n)
{
if((i%2)==0)
{
printf("%d",i);
}
i++;
}
n=10;
int i=2;
while(i<=n)
{
if((i%2)==0)
{
printf("%d",i);
}
i++;
}
No comments:
Post a Comment