print the even numbers in between given range
#include<stdio.h>
#include<conio.h>
int main()
{
int start,end;
printf("Enter the starting value:");
scanf("%d",&start);
printf("Enter the ending value:");
scanf("%d",&end);
while(start<=end)
{
if(start%2==0)
printf("%d\n",start);
start++;
}
return 0;
}
0 Comments