title: Prolog, how to show multiple output in write()
body: <pre><code>go :-   match(Mn,Fn),
          write('--Matching Result--'),
          nl,
          write(Mn),
          write(' match with '),
          write(Fn),
          match(Mn1,Fn1).
  
  
  person(may,female,25,blue).
  person(rose,female,20,blue).
  person(hock,male,30,blue).
  person(ali,male,24,blue).
  match(Mn,Fn):-person(Fn,'female',Fage,Fatt),
  person(Mn,'male',Mage,Matt),
  Mage&gt;=Fage,
  Fatt=Matt.
  </code></pre>
  
  <p>Hi,this is my code...but it's only can show the 1 output...but there are 3 pair of matching in match(X,Y).how to show them all in my go function.</p>
  
  <p>Thank you</p>