title: Defining multiple values inside a Scala Method
body: <p>I am very new to the Scala programming and while practicing Scala functions I wrote this without any error:</p>
  <pre><code>def house (facade:Double, window:Double): Double = {
  val Door = 2x1
  facade - Door -2 x window
  } 
  house(10,3)
  </code></pre>
  <p>But whenever I try to add another value (subArea) inside the method, it gives the error at 2*window:</p>
  <pre><code> Found:    Unit
  Required: Doublemdoc: 
  </code></pre>
  <pre><code>def House (facade:Double, window:Double): Double = val Door = 1x2    val subArea=facade - Door -2 x window}
  </code></pre>
  <p>Please Help.
  thanks</p>