#include <iostream>
using namespace std;

int main() {
        int x;
    cout<<" you have entered "<<x<<" rows ";
    cin>>x;
    cout<<endl;
    for( int i=1; i<=x; i++){
        for( int j=1 ; j<=i; j++   ){
            cout<<2*j-1;
        }
        cout<<endl;
    }
}

Embed on website

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