Welcome to my collection of C# practice programs! This repository contains a variety of beginner-to-intermediate level C# programs that cover important programming concepts such as:
- Variables & Data Types
- Loops (for, while)
- Conditionals (if-else, switch)
- Arrays & Strings
- Methods
- Object-Oriented Programming (Classes, Inheritance, etc.)
- Math Functions
- File I/O
- Real-world mini problems
CSharpPractice/ ├── Basics/ │ ├── HelloWorld.cs │ ├── Variables.cs │ └── InputOutput.cs ├── Loops/ │ ├── ForLoopSquare.cs │ └── WhileLoopTable.cs ├── Arrays/ │ ├── SquareOfElements.cs │ └── FindMax.cs ├── MathPrograms/ │ ├── SquareRootCalculator.cs │ └── Factorial.cs ...
Each folder is organized by topic to help you find what you need quickly.
- .NET SDK installed
- Any C# editor (e.g., Visual Studio, Visual Studio Code with C# extension)
You can compile and run any file using the following command:
dotnet run --project <ProjectName>
Or if it's a simple .cs file:
bash
Copy
Edit
csc FileName.cs
./FileName.exe
🙋♂️ Who This Is For
Students and beginners learning C#
Anyone preparing for coding interviews in C#
Developers looking to brush up on their C# basics
🌟 Contributions
Feel free to fork this repo, suggest improvements, or add new programs!
---
Let me know if:
- You want the README tailored to **Urdu** audience,
- You want to add **GIFs or screenshots**,
- Or want auto-run commands for **Visual Studio Code** projects.