using System;
namespace ajayvishu
{
public class Program
{
public static void Main(string[] args)
{
var charstr = RemoveDuplicates("Developer");
Console.WriteLine(charstr);
}
public static string RemoveDuplicates(string input)
{
return new string(input.ToCharArray().Distinct().ToArray());
}
}
}
namespace ajayvishu
{
public class Program
{
public static void Main(string[] args)
{
var charstr = RemoveDuplicates("Developer");
Console.WriteLine(charstr);
}
public static string RemoveDuplicates(string input)
{
return new string(input.ToCharArray().Distinct().ToArray());
}
}
}
0 Comments
if you have any doubts , please let me know