C program to print all even numbers from 1 to n given range

#include<stdio.h>
int main()
{
	int i, start, end;

	printf("Enter Start Number: ");
	scanf("%d",&start);
	printf("Enter End Number: ");
	scanf("%d",&end);

	for(i=start;i<=end;i++)
	{
		if(i%2==0)
		{
			printf("%d\n",i);
		}
	}
}

Output

Enter Start Number: 7
Enter End Number: 19
8
10
12
14
16
18