public static void Main()
string tes = "tes balik";
Console.WriteLine(dibalik(tes));
public static void bubbleSort(int[] input)
int temp, jumlah = input.Length;
for (int x = 0; x < jumlah; x++)
for (int y = 0; y < jumlah - 1 - x; y++)
if (input[y] > input[y + 1])
for (int x = 0; x < jumlah; x++)
Console.Write(input[x] + " ");
public static string dibalik(string input)
int jumlah = input.Length;
StringBuilder sb = new StringBuilder(input);
for (int x = 0, y = jumlah - 1; x < jumlah / 2; x++, y--)
return Convert.ToString(sb);