Submitting Issue

Answer is wrong while I submitting :

#include
using namespace std;
int main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=i; j<5; j++)
{
cout<<" “;
}
if(i==1 || i==5)
{
for(j=1; j<=5; j++)
{
cout<<”";
}
}
else
{
cout<<"
";
for(j=1; j<=3; j++)
{
cout<<" “;
}
cout<<”*";
}
cout<<"\n";

}
return 0;

}

@jasmeets199786 as I can see you have the made the code for 5 number of lines. You have to make according to a general value n. User can input any value in n and your code should run accordingly. But this one will work only when n = 5.

Hope this helps.

Ok
But I checked My Editorial was Unlocked that’s why the code is not Submitting

If you unlock editorial or download test cases then your score wont count.

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.

In 07:50 duration this part was confusing please help