predict the output:
#include iostream
using namespace std;
int main() {
for(int row=0;row5;row=row+1)
{
if(row==0 || row==4)
{
for(int col=0;col10;col++)
{
cout"*";
}
}
else{
cout"*";
for(int i=0;i8;i++)
{
cout" ";
}
cout"*";
}
coutendl;
}
}


Posted on by