top of page
Admin
Jun 23, 20241 min read
Simple for loop in C#
To write all the number from 0 to 10 for (int i = 1; i <= 10; i++) { Console.Write($"{i} "); } output: 1 2 3 4 5 6 7 8 9 10 To write all...
2 views0 comments
Admin
Jun 23, 20241 min read
Swicth Case Example for C#
This console application use switch&case for detecting the day type which represents the simple example for C# Console.WriteLine("type a...
0 views0 comments
Admin
Jun 23, 20241 min read
C# Conditions and IF statements example
Here is a simple console application for letter grade calculation. using System.Numerics; Console.WriteLine("MidTerm Grade:"); byte...
1 view0 comments
Admin
Jun 23, 20241 min read
Prefix and Postfix increments in C#
Example at belows show prefix and postfix increments in C#. int x = 5; Console.WriteLine("x: {0}", x); //Output x: 5...
1 view0 comments
Admin
Jun 7, 20241 min read
Console.ReadKey()
Generalley this command is used for terminating the session. It asks to user to input any key. Console.WriteLine("press a button:");...
0 views0 comments
bottom of page