Write a C# Sharp program to create a new string which is 4 copies of the 2 front characters of a given string.If the given string length is less than 2 return the original string.
public static void Main(string[] args)
System.Console.WriteLine("Name: JENIFER CARDENAS GOMEZ");
System.Console.WriteLine(test("C Sharp"));
System.Console.WriteLine(test("JS"));
System.Console.WriteLine(test("a"));
System.Console.ReadLine();
public static string test(string str)
return str.Length < 2 ? str : str.Substring(0, 2) + str.Substring(0, 2) + str.Substring(0, 2) + str.Substring(0, 2);