Pattern triangle

question link
https://online.codingblocks.com/player/11915/content/4778?s=1493
my code
#include
using namespace std;
int main()
{
int n,k,j,l,m;
cin>>k;
for(n=1;n<=k;n++)
{
for(j=1;j<=n;j++)
cout<<"\t";
for(l=n;l<2n-1;l++)
cout<<“l”;
for(m=2
n-2;m>=n;m–)
cout<<“m”;
cout<<endl;
}
return 0;
}
what’s the problem with my code

Hey! you have done syntax errors in this code, like for multiplying 2 and n write it as 2*n instead of 2n.

this was 2*n only but after copy pasting it it is showing as 2n here.i dont know why

Hey! copy your code on https://ide.codingblocks.com/ save it and then share the link. So that i can help you to rectify your code.

https://ide.codingblocks.com/s/41963

Hey! for printing the value of an int variable, correct syntax is
cout << variable_name; (not cout << "variable_name"; )
other corrections are in intialization and termination conditions of your for loop.
I have rectified your code you can check this.