This Repository contains all my projects related to C Language built by me from scratch, covering console applications, recursive algorithms, randomized simulation, and menu-driven systems.
A fully functional two-innings cricket match simulator built entirely in C.
Highlights:
- Stadium selection from 10 real international venues
- Randomized toss with bat/bowl choice
- Ball-by-ball simulation using
rand()seeded withtime(0) - Live scorecard with run rate after every delivery
- Extras handling (wides/no-balls) without consuming a ball
- Full two-innings match — target set and chased
- Formatted final scorecard with winner declaration
Concepts: Structs · Pointers · Functions · rand() Simulation · Loops · switch
A menu-driven multi-operation calculator with recursion-based factorial and power functions.
Highlights:
- 8 operations: Add, Subtract, Divide, Multiply, Factorial, Modulus, Power, Exit
- Recursion used for both
factorialandpower— not iterative loops - Float division with divide-by-zero protection
- Continuous loop — stays running until user exits
- Built at VLSI Lab, SVNIT (
vlsilab-client37)
Concepts: Recursion · Functions · switch · while loop · Float vs Int · Input Validation
| Skill | Projects |
|---|---|
| Structs & Pointers | Cricket Simulation |
| Recursion | Calculator |
| Modular Function Design | Both |
| Input Validation & Edge Cases | Both |
Randomized Logic (rand, srand) |
Cricket Simulation |
Console I/O (printf, scanf) |
Both |
switch & Loop Control |
Both |
gcc .c -o output
./output
---
## 👤 Author
**Dev Gothi**
VLSI Student — SVNIT Surat (B.Tech VLSI, 2025–2029)
🔗 [GitHub](https://github.com/dev-gothi) | [LinkedIn](https://linkedin.com/in/dev-gothi)
---
## 📄 License
All projects in this repository are open source under the [MIT License](LICENSE).