Computer Science, asked by umairrasheed2019, 7 months ago

#include
using namespace std;
int main()
{
int num
cout << "enter the number of sides:";
cin >> number;
for (int i = 0; i < 6; i++)
{
for (j = 0; j < 5; j++)
{
if (i % 2 == 0)
{
cout << "**";
else
{
cout << "*0";
}
cout << "/n";
}
}
plz find the error

Answers

Answered by Yamini1999
1

Answer:

#include<iostream>

using namespace std;

int main()

{

int num,j;

cout << "enter the number of sides:";

cin >> num;

for (int i = 0; i < 6; i++)

{

for (j = 0; j < 5; j++)

{

if (i % 2 == 0)

{

cout << "**";

}

else

{

cout << "*0";

}

}

cout << "\n";

}

return 0;

}

Explanation:

Similar questions