Console based C program to print different patterns like Triangle, Diamond, Butterfly, Pascal Triangle etc.
Made by: Ashlok Kumar @TScom-dew
- 8 Different Patterns: triangle, reverse_triangle, pascal_triangle, circle, square, pyramid, diamond, butterfly
- Interactive Menu: User can select which pattern to print
- Cross-Platform: Works on Windows and Linux
- GitHub Actions: Auto build & test on every push ✅
| File | Description |
|---|---|
main.c |
Main driver code with menu system |
patterns.c |
All pattern printing functions |
patterns.h |
Header file with function declarations |
gcc main.c patterns.c -o program
.\programgcc main.c patterns.c -o program
./program
This repo uses GitHub Actions for CI/CD. On every push to main branch:
1. Automatic Compilation: gcc main.c patterns.c -o pattern_program -WallAuto Run:
2. Executes the program to check for runtime errors
3. Status Badge: ✅ Green = Build Pass, ❌ Red = Build Fail
👉 Check the `Actions` tab for live build status.
-
Language: C
-
Compiler: GCC
-
CI/CD: GitHub Actions
-
Platform: Cross-platform (Windows/Linux)
If you liked this project or it helped you learn something, please consider giving it a ⭐!
Found a bug or have a suggestion? Feel free to open an issue or drop a feedback. All feedbacks are appreciated!
Happy Coding! ❤️