12. 문자열 자르기 namespace Test { internal class Program { static void Main(string[] args) { string str = "hello world"; // 문자열 자르기 // Substring(시작위치, 시작위치로부터 총갯수) // 0번째부터 5개를 자른다 string result = str.Substring(0, 5); Console.WriteLine(result); } } } 연습문제/C# 연습문제 2023.08.16