#include <iostream>
using namespace std;
int main()
{
int min,max;
cout<<"\n Only Even Number Generation.";
cout<<"\n ----------------------------";
cout<<"\n Enter the Starting value : ";
cin>>min;
cout<<"\n Enter the Ending value : ";
cin>>max;
cout<<"\n\n Even Numbers....."<<endl;
for(;max>=min;)
{
cout<<" "<<max;
min=min+2;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: