This repository contains a collection of C++ projects focused on pattern printing using stars, numbers, and shapes.
These projects strengthen concepts such as loops, nested loops, conditions, and logic building, making them essential for beginners in problem-solving and algorithm design.
Each project is organized inside a separate folder:
cpp-pattern-projects/ │── pattern-triangle/ │ ├── main.cpp │ └── README.md │── pattern-diamond/ │ ├── main.cpp │ └── README.md │── pattern-numbers/ │ ├── main.cpp │ └── README.md
- Nested loops
- Controlling patterns with rows & columns
- Generating geometric shapes
- Using conditions inside loops
- Improving logic thinking
- Right-angle star triangle
- Pyramid star shape
- Inverted triangle
- Number increasing patterns
- Number pyramid
- Mixed star-number patterns
Each project folder contains a detailed README explaining the pattern, input, logic, and output.
- Open the folder of the project you want
- Open
main.cpp - Compile using a C++ compiler:
g++ main.cpp -o pattern
./pattern