Skip to content

Commit 9f5a0e7

Browse files
Update README.md (#6)
2 parents 1451e3d + 81f962a commit 9f5a0e7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1+
# C Language Programs
12

3+
This folder contains beginner-friendly C programs that demonstrate core concepts, written as part of my course practice.
4+
5+
## File List
6+
7+
1. **01_hello_world.c**
8+
- Prints "Hello, World!" to the screen.
9+
- First step into C programming.
10+
11+
2. **02_variables.c**
12+
- Demonstrates declaring variables and printing their values.
13+
- Example: integers, floats, characters.
14+
15+
3. **03_conditions.c**
16+
- Shows how to use `if`, `else`, and comparison operators.
17+
18+
4. **04_loops.c**
19+
- Examples of `for`, `while`, and `do-while` loops.
20+
21+
---
22+
23+
## How to Compile & Run
24+
Using GCC:
25+
```bash
26+
gcc 01_hello_world.c -o hello
27+
./hello
28+
```
29+
30+
Windows (Dev-C++ / TDM-GCC):
31+
```
32+
gcc 01_hello_world.c -o hello.exe
33+
hello.exe```

0 commit comments

Comments
 (0)