modify the program to print the following pattern
Attachments:
Answers
Answered by
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