I have tried this code but i am not getting the same value.
I am attaching the copy of my code.
#include
using namespace std;
int main(){
int row,col;
int n;
cin>>n;
for(row=1;row<=n;row=row+1){
for(col=1;col<=col;col=col+1){
cout<<"*";
}
cout<<endl;
}
cout<<endl;
return 0;
}