#include<iostream>
using namespace std;
int main()
{
for(int i=0;i<13;i++)
{
cout<<"*";
if(i==0 || i==12 ||i==9)
{
for(int j=0;j<10;j++)
{
if(i==9 && j==0)
{
cout<<" ";
}
else
cout<<"*";
}
}
else if(i==10)
{
cout<<" ";
cout<<"*";
for(int j=0;j<7;j++)
{
cout<<" ";
}
cout<<"*";
}
else if((i==1 || i==2 || i==11))
{
for(int j=0;j<9;j++)
cout<<" ";
cout<<"*";
}
cout<<'\n';
}
return 0;
}
uzair.tabassumwahla
0
Newbie Poster
Recommended Answers
Jump to PostCreating a new thread with the same problem won't help you more than explaining your problem. Consequently, you need to explain your problem which should be related to the points where you got stuck. Those points should be related to C++ in this case.
So, try to explain what's your …
All 3 Replies
CGSMCMLXXV
5
Junior Poster in Training
uzair.tabassumwahla
0
Newbie Poster
CGSMCMLXXV
5
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.