using namespace std;
int main()
{int n,i=1,k,j=0;
cin>>n;
k=n;
while(i<=n){
while(j<i){
cout<<k<<" ";
k+=2;
j++;
}
j=0;
cout<<endl;
i++;}You question is a bit confusing, because there is no order anyway this program will print
5
7 9
11 13 15
17 19 21 23
25 27 29 30 32
if you put n=5