using System;
using System.Text;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("Hello world!");
//--Tried but failed-start-//
string input = "abcd";
string result = "";
Console.WriteLine("Length {0}", input.Length);
for(int i=0; i< input.Length; i++){
for(int j=i; j< input.Length ; j++){
result = result + "," + input.Substring(i);
}
}
//--Tried but failed-end-//
string str = "abcd";
for (int i = 0; i < str.Length; ++i)
{
StringBuilder subString = new StringBuilder(str.Length - i);
for (int j = i; j < str.Length; ++j)
{
subString.Append(str[j]);
Console.Write(subString + " ");
}
}
Console.WriteLine("Partial Result {0}", result);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: