title: To find maximum and minimum of a list in prolog
body: <pre><code>domains
      list = integer*//shows error in swish saying "syntax error operator
                       expected"
      Max = integer
  predicates
      maximum_no(list,integer)
  clauses
      maximum_no([],Max):-
          write("Maximum No in List is:: ",Max),nl.
      maximum_no([H|T],Max):-
          H&gt;Max,
          N = H,
          maximum_no(T,N).
      maximum_no(L,Max):-
          maximum_no(L,Max).
  </code></pre>
  
  <p>Can someone please tell me how do I solve this error ? I do find the code is correct but it still says an error?
  I also have to write the code to find the minimum number of a list!!</p>