public static void PrintFirstAndLine(string text)
Console.WriteLine("***");
string first_three=text.Substring(0,3);
string last_three=text.Substring(text.Length-3,3);
Console.WriteLine(" :המחרוזת החדשה " + first_three+last_three);
public static void Main()
Console.WriteLine(" :הכנס מחרוזת ");
string user_input=Console.ReadLine();
PrintFirstAndLine(user_input);