Skip to content

Collection of beginner-to-advanced C++ pattern printing programs for practicing loops, logic, and formatting.

Notifications You must be signed in to change notification settings

unnatii14/cpp-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Pattern Printer in C++

A fun, menu-driven C++ console app that prints classic and advanced star & number patterns β€” now in color!
Perfect for beginners to learn loops, conditions, modular code and adding a polished console look.


🎨 New: Colored patterns!

Each pattern is printed in its own color (green, blue, cyan, magenta, etc.)
This makes the output more fun, readable, and impressive β€” especially when sharing or demoing.

(Uses ANSI escape codes, supported by most modern terminals like Linux/macOS and Windows 10+)

All pattern outputs

Below are examples of all 7 patterns printed by this program, each in its own color.

β–Ά Click to expand all screenshots

Square Hollow Pattern (Easy Star)

Square Hollow


Right Half Pyramid (Easy Star)

Right Half Pyramid


Number Increasing Pyramid (Easy Number)

Number Pyramid


Butterfly Star Pattern (Medium Star, Symmetrical)

Butterfly


Diamond Pattern (Medium Star, Symmetrical)

Diamond


Pascal's Triangle (Medium+ Number, Combinatorial)

Pascal's Triangle


Hollow Hourglass Pattern (Advanced Star)

Hollow Hourglass

✨ Thank you for checking out this project β€” happy coding and keep exploring creative patterns! ✨

About

Collection of beginner-to-advanced C++ pattern printing programs for practicing loops, logic, and formatting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages