+ 5
How to create a Nested loop in c++?
output will be:- *** *** ***
3 Antworten
+ 6
https://code.sololearn.com/c1Ng9hq7nxQb/?ref=app
uses py, a rectangle drawer might be an illustration !
+ 3
int i,j,m,n;
cout<<"enter no. of rows\n";
cin>>m;
cout<<"enter no. of * to be inserted in a row\n";
cin>>n;
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
cout<<"*";
}
cout<<"\n";
}