public static void Main()
int[] x = new int[10]{1, 9, 6, 7, 5, 9,3,4,5,6};
for (int i = 1; i < x.Length & flag == false; i++)
Console.WriteLine("sorted");
Console.Write(value + " ");
Console.WriteLine("not sorted but now it is");
Console.Write(value + " ");