title: Odd Multiple of 3 in prolog
body: <p>I need someone can help to how to do Odd Multiple of 3 in Prolog </p>
  
  <blockquote>
    <p>Define a predicate <code>oddMultOf3/1</code> that determines whether an integer is
    an odd multiple of 3. A user should be able to enter the predicate
    with an integer, e.g. <code>oddMultOf3(42)</code> and evaluate to either true or
    false. If the given parameter is not an integer, your predicate should
    display the message “ERROR: The given parameter is not an integer”.</p>
  </blockquote>
  
  <p>they asked me to do this </p>
  
  <pre><code>oddMultOf3(171).
  true.
  oddMultOf3(100).
  false.
  oddMultOf3(12).
  false.
  oddMultOf3(4.2).
  ERROR: The given parameter is not an integer
  oddMultOf3(-9).
  true.
  </code></pre>
  
  <p>but I keep receiving error everytime when I try.</p>
  
  <p>this my code</p>
  
  <blockquote>
    <p>oddMultOf3(N) :- Y is N mod 3, Y=0.</p>
  </blockquote>