Skip to content

TScom-dew/c-pattern-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Pattern Project 🔥

Console based C program to print different patterns like Triangle, Diamond, Butterfly, Pascal Triangle etc.

Made by: Ashlok Kumar @TScom-dew

🚀 Features

  • 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 ✅

📁 Files

File Description
main.c Main driver code with menu system
patterns.c All pattern printing functions
patterns.h Header file with function declarations

💻 How to Run Locally

For Windows:

gcc main.c patterns.c -o program
.\program

For Linux/Mac:

gcc main.c patterns.c -o program
./program

🤖 GitHub Actions

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.

🛠️ Tech Stack

  • Language: C

  • Compiler: GCC

  • CI/CD: GitHub Actions

  • Platform: Cross-platform (Windows/Linux)



🌟 Show Your Support

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! ❤️

About

learning c programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages