Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASIC LEVEL (1–5)

1. Right-Angled Triangle of Stars

Input: 5 Output:

*
**
***
****
*****

2. Inverted Right-Angled Triangle

Input: 5 Output:

*****
****
***
**
*

3. Number Triangle (1 to n)

Input: 5 Output:

1
12
123
1234
12345

4. Character Triangle (A pattern)

Input: 5 Output:

A
AB
ABC
ABCD
ABCDE

5. Hollow Square of Stars

Input: 5 Output:

*****
*   *
*   *
*   *
*****

🔹 INTERMEDIATE LEVEL (6–10)

6. Pyramid Pattern

Input: 5 Output:

    *
   ***
  *****
 *******
*********

7. Inverted Pyramid

Input: 5 Output:

*********
 *******
  *****
   ***
    *

8. Diamond Pattern

Input: 5 Output:

    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *

9. Pascal’s Triangle (Numbers)

Input: 5 Output:

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

10. Floyd’s Triangle

Input: 5 Output:

1
2 3
4 5 6
7 8 9 10
11 12 13 14 15

🔸 ADVANCED LEVEL (11–15)

11. Butterfly Pattern

Input: 4 Output:

*      *
**    **
***  ***
********
***  ***
**    **
*      *

12. Palindromic Number Pyramid

Input: 5 Output:

    1
   121
  12321
 1234321
123454321

13. Zig-Zag Star Pattern

Input: 3 Output:

  *     *
 * *   * *
*   * *   *

14. Hollow Diamond in a Square

Input: 5 Output:

*****
** **
*   *
** **
*****

15. Hourglass Pattern

Input: 5 Output:

*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages