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...
3 views
0 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 views
0 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 view
0 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 view
0 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 views
0 comments
Admin
Jun 7, 20241 min read
C# Console.Read()
This code only allows you input one character. Console.WriteLine("Input a character:"); int ch = Console.Read(); Console.Write("Character...
0 views
0 comments
Admin
May 13, 20241 min read
C# Placeholder
When you define a seri in C#, it follows the variables in the list provided. The seri is defined inside the Console.Writeline...
4 views
0 comments
Admin
May 13, 20241 min read
C# Writeline vs Write
Write is used to output data without adding a newline character, while Writeline adds a newline character after the output...
3 views
0 comments
bottom of page