#include <iostream>
using namespace std;

int main() {
    int n;
    cin>>n;
    int i;
    for (i=1 ; i<=n; i++){
        if(i%2==0 ) 
        continue; // continue is used to skip the round given in the if statement 
        cout<<i<<" ";
    }
}

Embed on website

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