Submission error

5

#include
using namespace std;
int main() {
int N;
cout<<β€œenter value of n:”;
cin >> N;
int i, j;
for(i=1; i<=N; i++)
{
for(j=1; j<=(N-i); j++)
cout<<(" β€œ);
if(i==1 || i==N)
for(j=1; j<=N; j++)
cout<<(”");
else
for(j=1; j<=N; j++)
if(j==1 || j==N)
cout<<("
");
else
cout<<(" β€œ);
cout<<”\n";
}
return 0;
}

hi @aditaroraindian_e3b2481e08673e90 remove cout<<β€œenter value of n:”; u dont need to print this

#include

using namespace std;

int main() {

int N=5;

int i, j;

for(i=1; i<=N; i++)

{

    for(j=1; j<=(N-i); j++)

    cout<<(" ");

    if(i==1 || i==N)

       for(j=1; j<=N; j++)

           cout<<("*");

    else

     for(j=1; j<=N; j++)

        if(j==1 || j==N)

         cout<<("*");

        else

           cout<<(" ");

        cout<<"\n";

}

    return 0;

}
STILL NOT able to submit

But working properly in coding blocks ide

hi @aditaroraindian_e3b2481e08673e90 take N as input using cin>>N instead of N = 5

still not able to submit

hi @aditaroraindian_e3b2481e08673e90 send the code on ide.codingblocks.com
login
write
save
share the url of page

hi @aditaroraindian_e3b2481e08673e90, https://ide.codingblocks.com/s/672147