AdminJun 231 min readSimple 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...
AdminJun 231 min readSwicth 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...
AdminJun 231 min readPrefix 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...
AdminJun 71 min readC# Console.Read()This code only allows you input one character. Console.WriteLine("Input a character:"); int ch = Console.Read(); Console.Write("Character...