title: Checking odd/even numbers and changing outputs on number size
body: <p>I have a couple of problems to solve for an assignment, and am a bit stuck.
  The question is to write a program that gets the user to input an odd number (check it's odd), then print an upside down pyramid of stars based on the size of the input.</p>
  
  <p>For example, if you enter 5, it comes up with</p>
  
  <pre><code>*****
   ***
    *
  </code></pre>
  
  <p>My problem is therefore two-fold.</p>
  
  <p>1) How do I check if it's even or odd? I tried <code>if number/2 == int</code> in the hope that it might do something, and the internet tells me to do <code>if number%2==0</code>, but that doesn't work.</p>
  
  <p>2) How do I change the asterisks in the middle of each line?</p>
  
  <p>Any help with either problem is greatly appreciated.</p>