Welcome to the C Programming Practice Codes repository!
This collection contains simple and well-structured C programs designed for beginners to learn C programming from the very basics, using Dev C++ as the development environment.
This repository is created to help students and beginners who want to learn C programming step-by-step with practical coding exercises.
Here, you'll find programs covering fundamental concepts such as:
- Basic syntax and structure of C programs
- Variables, data types, and input/output
- Arithmetic operations
- Conditional statements (
if
,else
,switch
) - Loops (
for
,while
,do-while
) - Arrays and strings
- Functions and recursion
- Simple algorithms and problem solving
- Linear Search
Each program is simple to understand and well-commented to explain what the code does.
-
Clone the repository:
git clone https://github.com/samarthchawla2005/C-Programming-Practice-Codes.git
-
Open the folder in Dev C++ (or any C IDE you prefer).
-
Explore the
.c
source files to study and run each program. -
Try modifying and experimenting with the code to improve your understanding.
-
Compile and run the programs using Dev C++ to see the output and behavior.
- Absolute beginners who want to learn C programming from scratch
- Students looking for practice problems with working solutions
- Anyone wanting to understand basic programming concepts and logic in C
- Developers who want to refresh their fundamentals in C language
/C-Programming-Practice-Codes
│
├── 1. Program to print Hello World.c
├── 2. Addition of two numbers.c
├── 3. Check whether a number is even or odd.c
├── 4. Find factorial of a number.c
├── 5. Print multiplication table.c
├── 6. Using while loop.c
├── 7. Table using Do-while Loop (with three variables).c
├── 8. Arithmetic Operator.c
├── 9. Array.c
├── 10. Check the type of number.c
├── 11. Conditional Statement.c
├── 12. Find Even & Odd Numbers in an Array.c
├── 13. For Loop.c
├── 14. Full name & fav. quote exercice.c
├── 15. Function for num cube.c
├── 16. Function to print name.c
├── 17. Function to repeat msg.c
- Read the comments inside each program carefully.
- Try to write the same programs on your own without looking.
- Change input values and observe how the program behaves.
- Attempt to solve small problems by combining multiple concepts learned.
- Regular practice is key — try to code daily!
For any questions or suggestions, you can reach me at:
GitHub: samarthchawla2005
LinkedIn [Samarth Chawla] (www.linkedin.com/in/samarth-chawla-sc1211rac)
Happy Learning! 🚀
Samarth Chawla