Computer Science, asked by dreamgirlprincess, 9 months ago

modify the program to print the following pattern​

Attachments:

Answers

Answered by arunmehta14
1

Explanation:

#include<iostream>

using namespace std;

int main()

{

int n;

cout<<"enter range" ;

cin>>n;

int k=1;

for(int i=1;i<=n;i++)

{

for(int j=1;j<=k;j++)

cout<<k;

cout<<"\n" ;

k=k+2;

}

return 0;

}

Similar questions
Math, 5 months ago