Printing these patterns using loops:
- Source Code: (Click to redirect to the code)
1. *****
*****
*****
*****
*****
- Source Code: (Click to redirect to the code)
2. *
**
***
****
*****
- Source Code: (Click to redirect to the code)
3. *****
****
***
**
*
- Source Code: (Click to redirect to the code)
4. 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
- Source Code: (Click to redirect to the code)
5. *
**
***
****
*****
*****
****
***
**
*
- Source Code: (Click to redirect to the code)
6. *
**
***
****
*****
- Source Code: (Click to redirect to the code)
7. *****
****
***
**
*
- Source Code: (Click to redirect to the code)
8. *
***
*****
*******
*********
- Source Code: (Click to redirect to the code)
9. *********
*******
*****
***
*
- Source Code: (Click to redirect to the code)
10. *
* *
* * *
* * * *
* * * * *
- Source Code: (Click to redirect to the code)
11. * * * * *
* * * *
* * *
* *
*
- Source Code: (Click to redirect to the code)
12. * * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *
- Source Code: (Click to redirect to the code)
13. *
* *
* *
* *
*********
- Source Code: (Click to redirect to the code)
14. *********
* *
* *
* *
*
- Source Code: (Click to redirect to the code)
15. *
* *
* *
* *
* *
* *
* *
* *
*
- Source Code: (Click to redirect to the code)
16. 1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
- Source Code: (Click to redirect to the code)
17. 1
212
32123
4321234
32123
212
1
- Source Code: (Click to redirect to the code)
18. **********
**** ****
*** ***
** **
* *
* *
** **
*** ***
**** ****
**********
- Source Code: (Click to redirect to the code)
19. * *
** **
*** ***
**** ****
**********
**** ****
*** ***
** **
* *
- Source Code: (Click to redirect to the code)
20. ****
* *
* *
* *
****
- Source Code: (Click to redirect to the code)
21. 1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
- Source Code: (Click to redirect to the code)
22. 1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
- Source Code: (Click to redirect to the code)
23. * *
* * * *
* * *
- Source Code: (Click to redirect to the code)
24. * *
** **
* * * *
* * * *
* ** *
* ** *
* * * *
* * * *
** **
* *
- Source Code: (Click to redirect to the code)
25. *****
* *
* *
* *
*****
- Source Code: (Click to redirect to the code)
26. 1 1 1 1 1 1
2 2 2 2 2
3 3 3 3
4 4 4
5 5
6
- Source Code: (Click to redirect to the code)
27. 1 2 3 4 17 18 19 20
5 6 7 14 15 16
8 9 12 13
10 11
- Source Code: (Click to redirect to the code)
28. *
* *
* * *
* * * *
* * * * *
* * * * *
* * * *
* * *
* *
*
- Source Code: (Click to redirect to the code)
29.
* *
** **
*** ***
**** ****
**********
**********
**** ****
*** ***
** **
* *
- Source Code: (Click to redirect to the code)
30. 1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
- Source Code: (Click to redirect to the code)
31. 4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4