using System; using System.Text; namespace BaiTrenLopNgay23vs2 { class Program { static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; string H = "https://www.hutech.edu.vn/khoacntt"; string[] arr = H.Split('.'); Console.WriteLine("{0}", arr[1]); string[] a = H.Split('/'); Console.WriteLine("{0}", a[3]); int vt = H.LastIndexOf("/"); string Khoa = H.Substring(vt +1); Console.WriteLine(Khoa); int vt2 = H.IndexOf("hutech"); string Ht = H.Substring(vt2,6); Console.WriteLine(Ht); Console.ReadLine(); } } }