using System;
using System.Collections.Generic;
using System.Linq; using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string s = "abc";
Console.WriteLine("Enter The Three Character:");
// string ch = Console.ReadLine();
char[] chabc = s.ToCharArray();
for (int i = 0; i < s.Length; i++)
{
try
{
string dh = s.Substring(i, 1);
Console.Write(dh);
Console.Write(",");
}
catch (Exception)
{
// throw;
}
}
for (int i = 0; i < s.Length; i++)
{
for (int j = 0; j < chabc.Length; j++)
{
if (i != j)
{
try
{
Console.Write(s.Substring(i, 1));
Console.Write(s.Substring(j, 1));
Console.Write(",");
}
catch (Exception)
{
// throw;
}
}
}
}
Console.Write(s.Substring(0, 3));
Console.ReadKey();
}
}
}