This program will print the even series. For example, if you have entered 12 then it will print all the even numbers which comes between 1 to 12.
cout<<"Enter the value of n:";
cout<<"nThe even series is:nn";
Enter the value of n: 8
The even series is: