title: Adding Two Measurements of height in feets and inches
body: <p>I have two inputs of float values <code>5.9f</code>, <code>9.11f</code> which is 5 feet 9 inch and 9 feet 11 inch. I need to add them and display 15 feet 8 inches.</p>
  
  <pre><code>public static void addingFeets(float a,float b)
  {
      int c = (int)a*12;      
      int d = (int)b*12;      
      float e = Math.round((a%1)*10);     
      float f = Math.round((b%1)*10);     
      float g = (int) ((int)e+f);     
      int h = (int) (c+d+g);    
      System.out.println( h/12+" feet "+h%12+" inches");          
  }
  </code></pre>
  
  <p>but I am not able to get the proper output when one of the input contains 11 inches.</p>