satya.masabattula
BAN USERusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
bool flag = false;
string str1 = Console.ReadLine();
string str2 = Console.ReadLine();
string str3 = Console.ReadLine();
int count = 0;
string final = str1 + str2;
for (int i = 0; i < final.Length; i++)
{
for (int j = 0; j < str3.Length; j++)
{
if (str3[j] == final[i])
{
flag = false;
count++;
break;
}
else
{
flag = true;
}
}
if (flag)
{
Console.WriteLine("sorry no match...");
break;
}
}
if (!flag)
{
Console.WriteLine("matched...");
}
}
}
}
What is the other conditions we need to apply here. what does interleaved mean?
- satya.masabattula August 28, 2012Can you provide me some other sample inputs and outputs?