Why I can't get value printed?
<p>I wrote the following program:</p>

<pre><code>import java.util.Scanner ;

public class Triangle
{
   public static void main ( String [] args )
   {
       Scanner scan = new Scanner ( System.in ) ; // new object named "scan"

       // Next lines scan ribs values into a,b,c parameters
       System.out.println ( "Please enter first rib value : "  ) ;
       int a = scan.nextInt () ; 
       System.out.println ( "Please enter second rib value : "  ) ;
       int b = scan.nextInt () ; 
       System.out.println ( "Please enter third rib value : "  ) ;
       int c = scan.nextInt () ; 
       if ( ! ( ( a &gt;= 1 ) &amp;&amp; ( b&gt;=1 ) &amp;&amp; ( c&gt;=1 ) ) ) 
            System.out.println ( "One or more of the ribs value is negative !!\nPlease enter a positive value ONLY ! "  ) ;     
       else if ( ! ( (a &lt;= b+c) &amp;&amp; ( b &lt;= a+c ) &amp;&amp; ( c &lt;= a+b ) ) )
            System.out.println ( "Error !\n\nOne rib can not be bigger than the two others !  "  ) ;     
       else
        {
           float s = (a+b+c) / 2 ;
           double area = Math.sqrt( s * ( s-a ) * ( s-b ) * ( s-c ) ) ;
           float perimeter = s*2 ;
           System.out.println ( "Perimeter of the triangle is: "+perimeter+"\n\nArea of the triangle is: "+area) ;     
        }// end of else
        }//end of method main
  } //end of class Triangle
</code></pre>

<p>The problem is that I get on screen <em>area</em> value 0.0 for every legal values of the triangle's ribs.</p>

<p>Why is that ? I did everything seems to be Ok .. isn't it ?!</p>

<p>thnx</p>
