#include <iostream>
using namespace std;
int main()
{
    int n,min,max;
    cout<<"\nOdd and Even Number Generation.";
    cout<<"\n--------------------------------";
    cout<<"\n\nEnter the Minimum Range : ";
    cin>>min;
    cout<<"\nEnter the Maximum Range : ";
    cin>>max;
    cout<<"\n\nOdd Numbers in given Range are : ";
    for(n=min;n<=max;n++)
    {
        if(n%2!=0)
            cout<<n<<" ";
    }
    cout<<"\n\nEven Numbers in given Range are : ";
    for(n=min;n<=max;n++)
    {
        if(n%2==0)
            cout<<n<<" ";
    }
    cout<<"\n\n\t |Program End|";
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: