Not getting the same value

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;

}

hi @punyakakkar34_ef31ec656b2f5dad

for(col=1;col<=row;col=col+1){ // col <= row not col <= col
		cout<<"*";
	}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.