title: Calculates the width of a rectangle given the area and perimeter
body: <p>Ive based the e1 and e2 sections of code as two halves of the google equation found when asking <code>calculate width of a rectangle given perimeter and area</code>.  </p>
  
  <p>This section of code is set to be part of a larger piece that displays the calculated rectangle in a visual form instead of using integers, however when i test it, the answer it gives is incorrect.</p>
  
  <pre><code>import math
  
  print("Welcome to Rectangles! Please dont use decimals!")
  
  area = int(input("What is the area? "))
  
  perim = int(input("What is the perimeter? "))
  
  e1 = int((perim / 4)  + .25)
  e2 = int(perim**2 - (16 * area))
  e3 = int(math.sqrt(e2))
  
  width = int(e1 * e3)
  print(width)
  </code></pre>
  
  <p>&nbsp;</p>