-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtemple.c
105 lines (92 loc) · 1.08 KB
/
temple.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#include<stdio.h>
int main()
{
int i,j,k;
/* flage construction */
for(i=1;i<=5;i++)
{
for(k=0;k<=30;k++)
{
printf(" ");
}
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
for(i=1;i<4;i++)
{
for(k=0;k<=30;k++)
{
printf(" ");
}
for(j=i;j<=i;j++)
{
printf("*");
}
printf("\n");
}
// temple //
for(i=1;i<=7;i++)
{
for(k=0;k<=31-i;k++)
{
printf(" ");
}
for(k=0;k<2*i-1;k++)
{
printf("*");
}
printf("\n");
}
for(i=0;i<=5;i++)
{ printf("\n");
for(k=0;k<=23;k++)
{
printf(" ");
}
printf("*");
if(i==0||i==1)
{
for(k=0;k<=12;k++)
{
printf(" ");
}
printf("*");
}
if(i==2)
{
for(k=0;k<=2;k++)
{
printf(" ");
}
printf("******");
for(k=0;k<=3;k++)
{
printf(" ");
}
printf("*");
}
if(i==3||i==4||i==5)
{
for(k=0;k<=2;k++)
{
printf(" ");
}
printf("* *");
for(k=0;k<=3;k++)
{
printf(" ");
}
printf("*");
}
}
printf("\n");
for(k=0;k<=23;k++)
{
printf(" ");
}
printf("***************");
return 0;
}