Skip to content

aliahsan9/C_Sharp_Fundamentals

Repository files navigation

C# Practice Programs 🚀

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

📁 Folder Structure

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.

🛠 Requirements

  • .NET SDK installed
  • Any C# editor (e.g., Visual Studio, Visual Studio Code with C# extension)

🚀 How to Run

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.

About

C# fundamentals from basic to advanced including DSA exercises.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages