- 1
what should be the code for the following output? * ** *** **** ***** ****** uptil n
2 Antworten
+ 1
int main
{
int i, j, n;
cin>>n; //for number of row
for( i=0; i< n; i++)
{ for( j=0; j<=i ; j++)
{cout<<"*";}
}
}
0
add cout<<endl; in outerloop