Answer to Question 18A-1

bool ascending(int A[], int n)
{
  if(n <= 1)
  {
    return true;
  }
  else if(A[n-1] <= A[n-2])
  {
    return false;
  }
  else
  {
    return ascending(A, n-1);
  }
}