Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
class Program
{
static void Main()
{
string text = "Hello World from CSharp";
Console.WriteLine("Length: " + text.Length);
Console.WriteLine("Substring: " + text.Substring(6, 5));
string[] words = text.Split(' ');
Console.WriteLine("Split words:");
foreach (string word in words)
{
Console.WriteLine(word);
}
Console.WriteLine("Replace: " + text.Replace("World", "Universe"));
Console.WriteLine("Upper: " + text.ToUpper());
Console.WriteLine("Lower: " + text.ToLower());
}
}Coding works best on desktop or with an external keyboard.