What is soln of pattern problem by using while loop

isn’t?
#include
using namespace std;

int main() {
int n;
int row ,col;
cin>>n;
row=1;
col=1;
while (row<=n){
cout<<endl;

 while(col<=row){
      cout<<"*  "   ;

              

     col=col+1;
  }
            
  row=row+1;

}

return 0;
}

hi @pd05011982_f532147ff24db8fc,