# C Adventure Game
## π― Objective
A simple **text-based adventure game** written in C.
The goal is to practice control flow, loops, and user interaction.
---
## π How to Compile & Run
1. Open a terminal in the project folder.
2. Compile the program:
```bash
gcc adventure_game.c -o adventure_game
-
Run it:
./adventure_game
Choose a path (left/right): left
You encounter a friendly dragon. It offers you treasure!
Do you accept? (yes/no): yes
The dragon rewards you with gold. You win!
if
/else if
/else
- User input handling
- String comparison
- Simple branching storyline
---
# π README for **Java Calculator**
```markdown
# Java Calculator
## π― Objective
A simple calculator program written in **Java**.
It supports addition, subtraction, multiplication, and division.
The goal is to practice methods and user input handling in Java.
---
## π How to Compile & Run
1. Open a terminal in the project folder.
2. Compile the program:
```bash
javac Calculator.java
-
Run it:
java Calculator
Enter first number: 10
Enter operator (+, -, *, /): +
Enter second number: 20
Result: 30.0
- Methods (
add
,subtract
,multiply
,divide
) - Switch statement
- Handling division by zero
- Basic user input with
Scanner
---
π Do you want me to make **one README file for each project separately** (so you upload them in their own repos), or a **single README covering both projects together**?