Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- static void Main()
- {
- Console.WriteLine("Введите предложение: ");
- string Text = Console.ReadLine();
- Console.WriteLine(Substring(Text));
- }
- static string Substring (string X)
- {
- char[] Ar = new char[X.Length];
- for (int k = 0; k < X.Length; k++)
- {
- Ar[k] = X[k];
- }
- String A = new string(Ar, 1, 5);
- return A;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement