Skip to content

Commit a818094

Browse files
Merge pull request kunal-kushwaha#82 from phantom-18/pattern
Question on pattern
2 parents c52c14a + 361dde6 commit a818094

File tree

1 file changed

+161
-0
lines changed

1 file changed

+161
-0
lines changed

assignments/patterns.txt

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
Pattern Questions
2+
3+
Print these patterns using loops:
4+
5+
6+
1. *****
7+
*****
8+
*****
9+
*****
10+
*****
11+
12+
13+
2. *
14+
**
15+
***
16+
****
17+
*****
18+
19+
20+
3. *****
21+
****
22+
***
23+
**
24+
*
25+
26+
27+
3. 1
28+
1 2
29+
1 2 3
30+
1 2 3 4
31+
1 2 3 4 5
32+
33+
34+
4. *
35+
**
36+
***
37+
****
38+
*****
39+
*****
40+
****
41+
***
42+
**
43+
*
44+
45+
46+
5. *
47+
**
48+
***
49+
****
50+
*****
51+
52+
53+
6. *****
54+
****
55+
***
56+
**
57+
*
58+
59+
60+
7. *
61+
***
62+
*****
63+
*******
64+
*********
65+
66+
67+
8. *********
68+
*******
69+
*****
70+
***
71+
*
72+
73+
74+
9. *
75+
* *
76+
* * *
77+
* * * *
78+
* * * * *
79+
80+
81+
10. * * * * *
82+
* * * *
83+
* * *
84+
* *
85+
*
86+
87+
88+
11. * * * * *
89+
* * * *
90+
* * *
91+
* *
92+
*
93+
*
94+
* *
95+
* * *
96+
* * * *
97+
* * * * *
98+
99+
100+
12. *
101+
* *
102+
* *
103+
* *
104+
*********
105+
106+
107+
13. *********
108+
* *
109+
* *
110+
* *
111+
*
112+
113+
114+
14. *
115+
* *
116+
* *
117+
* *
118+
* *
119+
* *
120+
* *
121+
* *
122+
*
123+
124+
125+
15. 1
126+
1 1
127+
1 2 1
128+
1 3 3 1
129+
1 4 6 4 1
130+
131+
132+
16. 1
133+
212
134+
32123
135+
4321234
136+
32123
137+
212
138+
1
139+
140+
141+
17. **********
142+
**** ****
143+
*** ***
144+
** **
145+
* *
146+
* *
147+
** **
148+
*** ***
149+
**** ****
150+
**********
151+
152+
153+
18. * *
154+
** **
155+
*** ***
156+
**** ****
157+
**********
158+
**** ****
159+
*** ***
160+
** **
161+
* *

0 commit comments

Comments
 (0)