This repository is a collection of fundamental C# programming concepts. It is designed for beginners who want to learn the basics of C# programming. Each topic is organized into separate folders for better understanding.
-
Hello World
- Introduction to the basic structure of a C# program.
- Printing "Hello, World!" to the console.
-
Data Types
- Explanation of fundamental data types in C#, such as
int
,float
,double
,char
, andstring
. - Examples demonstrating the usage of each data type.
- Explanation of fundamental data types in C#, such as
-
User Inputs
- How to take user input in C#.
- Reading input from the console using
Console.ReadLine()
.
-
Arrays
- Declaration and initialization of arrays.
- Basic operations on arrays, such as accessing elements and updating values.
-
Methods
- Creating and using methods in C#.
- Understanding method parameters and return types.
-
If Statements
- Introduction to conditional statements using
if
,else if
, andelse
. - Examples demonstrating the use of logical conditions.
- Introduction to conditional statements using
-
Switch Statements
- Switching between different cases based on a variable's value.
- Using
switch
for multiple branching logic.
-
While Loops
- Basics of while loops in C#.
- Examples of using while loops for repetitive tasks.
-
2D Arrays
- Declaration and initialization of two-dimensional arrays.
- Accessing and manipulating elements in a 2D array.
-
Exceptions Handling
-
Clone this repository to your local machine:
git clone https://github.com/kemboi590/C-Sharp-Fundamentals.git