Welcome to the problem-solving-c repository 🚀
This repository is a collection of problem-solving programs written in C, focused on building strong logic, clear thinking, and confidence with the C language. Each file represents a specific problem and its solution using fundamental C concepts.
This repo is about practice. Real practice. The kind that slowly rewires how you think.
- Improve problem-solving skills using C
- Practice logic through small to medium problems
- Strengthen understanding of loops, conditions, arrays, and functions
- Prepare for exams, lab tests, and beginner competitive programming
- Keep all solved C problems organized in one place
This repository grows as more problems are solved.
The problems in this repository cover topics such as:
- Basic input/output
- Arithmetic and logical operations
- Even–odd checks
- Palindrome problems
- Array and 2D array problems
- Sorting and searching basics
- Recursion-based problems
- Counting and comparison problems
- Pattern and number printing
Each problem is solved using simple and readable C code.
problem-solving-c/
├── 2D_array.c
├── A_Add.c
├── A_Print_Recursion.c
├── B_Print.c
├── C_Compare.c
├── C_Print_from_N_to_1.c
├── Count_Before_One.c
├── D_Print_Digits_using_Recursion.c
├── Difference_Array.c
├── Divisible_By_5_or_Not.c
├── Even_and_Odd.c
├── F_Reversing.c
├── Find_the_Missing_Number.c
├── G_Palindrome_Array.c
├── H_Sorting.c
├── I_Count_Vowels.c
├── Is_Palindrome.c
├── J_Factorial.c
├── ...and more
├── README.md
Each file name reflects the problem it solves.
- Language: C
- Compiler: GCC
- Editor: VS Code / Code::Blocks / Dev-C++
- OS: Windows / Linux
- Clone the repository:
git clone https://github.com/Tauhidrana/problem-solving-c.git- Go to the repository folder:
cd problem-solving-c- Compile any C file:
gcc filename.c -o filename- Run the program:
./filenameTry different inputs and modify the code — learning happens there.
This repository follows a practice-driven approach:
- Solve many small problems
- Focus on logic, not shortcuts
- Write clear code before optimized code
- Learn from wrong answers and bugs
Problem solving is not talent — it’s repetition.
- Solutions prioritize clarity over optimization
- Code style improves as learning progresses
- This is a learning repository, not a production library
This is mainly a personal practice repository, but:
- Better logic is welcome
- Cleaner solutions are appreciated
- New problems are always good
If this repository helps you improve your problem-solving skills in C, consider giving it a ⭐ on GitHub.
Solve problems daily. Growth will follow. 💪🔥