using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
//Your code goes here
string str1="ri", str2 = "si";
var common = str1.Intersect(str2);
foreach(var c in common)
{
Console.Write(c);
}
}
}
}
=========
i
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
//Your code goes here
string str1="ri", str2 = "si";
var common = str1.Intersect(str2);
foreach(var c in common)
{
Console.Write(c);
}
}
}
}
=========
i