title: How to check whether rectangle is golden rectangle?
body: <p>I have a class named Rectangle.The class has two properties width and height.
  I need to check whether the Rectangle class has golden ratio(height/width = 1.6), if it does I need to return true, else return false.</p>
  
  <p>Here is my class:</p>
  
  <pre><code>class Rectangle {
     private int x, y;
     private int height, width;
  
     public boolean isGoldenRatio()
     {
       return (height / width == 1 &amp;&amp; height % width == 6); 
     }
  }
  </code></pre>
  
  <p>I created the function isGoldenRatio() to check the ratio of the sides.
  But I guess it's wrong, because I don't get the desired result.</p>
  
  <p><strong>UPDATE:</strong>
  I cant define additions fields in my class and I cant use math library.</p>
  
  <p>Any idea how to fix the function? </p>