#include<iostream.h>
#include<conio.h>
void main() {
int a,b,c,d,e,f,g,z;
cout<<"\n ";
for (a=1;a<=33;a++)
cout<<"*";
cout<<"\n\n";
for (z=1;z<=2;z++)
{
cout<<" "; /* larik 1 */
for (int a=1;a<=5;a++)
cout<<"*";
cout<<" ";
for (int b=1;b<=5;b++)
cout<<"*";
cout<<" ";
for (int c=1;c<=5;c++)
cout<<"*";
cout<<" ";
for (int d=1;d<=5;d++)
cout<<"*";
cout<<" ";
cout<<"*";
cout<<" ";
cout<<"*\n";
}
for (a=1;a<=2;a++) /* larik 2,3 */
{
cout<<" ";
cout<<"*";
for (int b=1;b<=6;b++)
cout<<" ";
cout<<"*";
for (int c=1;c<=3;c++)
cout<<" ";
cout<<"*";
cout<<" ";
cout<<"*";
for (int d=1;d<=6;d++)
cout<<" ";
cout<<"*";
for (int e=1;e<=6;e++)
cout<<" ";
cout<<"*";
for (int f=1;f<=3;f++)
cout<<" ";
cout<<"*\n";
}
cout<<" "; /* larik 4 */
for (a=1;a<=5;a++)
cout<<"*";
cout<<" ";
cout<<"*";
for (b=1;b<=3;b++)
cout<<" ";
cout<<"*";
cout<<" ";
cout<<"*";
for (a=1;a<=6;a++)
cout<<" ";
cout<<"*";
for (a=1;a<=6;a++)
cout<<" ";
for (a=1;a<=5;a++)
cout<<"*";
cout<<"\n";
for (a=1;a<=2;a++) /* larik 5,6 */
{
for (int b=1;b<=6;b++)
cout<<" ";
cout<<"*";
cout<<" ";
cout<<"*";
for (int c=1;c<=3;c++)
cout<<" ";
cout<<"*";
cout<<" ";
cout<<"*";
for (int d=1;d<=6;d++)
cout<<" ";
cout<<"*";
for (int e=1;e<=10;e++)
cout<<" ";
cout<<"*\n";
}
for (z=1;z<=2;z++)
{
cout<<" "; /* larik 7 */
for (int a=1;a<=5;a++)
cout<<"*";
cout<<" ";
for (int b=1;b<=5;b++)
cout<<"*";
cout<<" ";
cout<<"*";
for (int c=1;c<=6;c++)
cout<<" ";
cout<<"*";
for (int d=1;d<=6;d++)
cout<<" ";
for (int e=1;e<=5;e++)
cout<<"*";
cout<<"\n";
}
cout<<"\n ";
for (a=1;a<=33;a++)
cout<<"*";
cout<<"\n";
cout<<"\n";
cout<<" ";
getche();
}
0 comments:
Post a Comment