Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on pattern #82

Merged
merged 8 commits into from Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
161 changes: 161 additions & 0 deletions assignments/patterns.txt
@@ -0,0 +1,161 @@
Pattern Questions

Print these patterns using loops:


1. *****
*****
*****
*****
*****


2. *
**
***
****
*****


3. *****
****
***
**
*


3. 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5


4. *
**
***
****
*****
*****
****
***
**
*


5. *
**
***
****
*****


6. *****
****
***
**
*


7. *
***
*****
*******
*********


8. *********
*******
*****
***
*


9. *
* *
* * *
* * * *
* * * * *


10. * * * * *
* * * *
* * *
* *
*


11. * * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *


12. *
* *
* *
* *
*********


13. *********
* *
* *
* *
*


14. *
* *
* *
* *
* *
* *
* *
* *
*


15. 1
1 1
1 2 1
1 3 3 1
1 4 6 4 1


16. 1
212
32123
4321234
32123
212
1


17. **********
**** ****
*** ***
** **
* *
* *
** **
*** ***
**** ****
**********


18. * *
** **
*** ***
**** ****
**********
**** ****
*** ***
** **
* *