C program to print even numbers using while loop

C program to print even numbers using while loop

Output:

Enter the range till which to print even numbers:
10
The even numbers between 1 & 10 are:
2 4 6 8 10

Implementation: