using System;
public class Program
{
public static void Main()
int[] a =new int[]{10,20,30,45};
int[] b =new int[]{10,20,6,30,45};
Console.WriteLine(IsSort(a));
Console.WriteLine(IsSort(b));
}
static bool IsSort(int[] a)
int x=0;
for (int i=0 ;i<a.Length-1 ; i++)
if (a[i]<a[i+1])
x++;
return(x == a.Length-1);