Sir can you give this code by using while loop I am trying it but it give me terminal error

#include
using namespace std;
int main ()
{
int row=1,col=1,N;
cout<<“Enter the limit”;
cin>>N;
for(row=1;row<=N;row++)
{
for(col=1;col<=row;col++)
{
cout<<"*";
}
cout<<"\n";
}
}

hi @gamingzone123a_2a8bc985f4c429d5 the code is running fine maybe u were not giving input check here https://ide.codingblocks.com/s/666534

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.