diff --git a/README.md b/README.md index 8b13789..e38b6eb 100644 --- a/README.md +++ b/README.md @@ -1 +1,33 @@ +# C Language Programs +This folder contains beginner-friendly C programs that demonstrate core concepts, written as part of my course practice. + +## File List + +1. **01_hello_world.c** + - Prints "Hello, World!" to the screen. + - First step into C programming. + +2. **02_variables.c** + - Demonstrates declaring variables and printing their values. + - Example: integers, floats, characters. + +3. **03_conditions.c** + - Shows how to use `if`, `else`, and comparison operators. + +4. **04_loops.c** + - Examples of `for`, `while`, and `do-while` loops. + +--- + +## How to Compile & Run +Using GCC: +```bash +gcc 01_hello_world.c -o hello +./hello +``` + +Windows (Dev-C++ / TDM-GCC): +``` +gcc 01_hello_world.c -o hello.exe +hello.exe```