Multiplication and Division : Operators « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Multiplication and Division</TITLE>
  </HEAD>

  <BODY>
    <H1>Multiplication and Division</H1>
    <%
        double double1 = 6, double2 = 8, double3 = 5, doubleResult;
        doubleResult = double1 * double2 / double3;
        out.println("6 * 8 / 5 = " + doubleResult);
     %>
  </BODY>
</HTML>








23.13.Operators
23.13.1.Using Operators
23.13.2.Incrementing and Decrementing
23.13.3.Multiplication and Division
23.13.4.Addition and Subtraction
23.13.5.Using Relational Operators
23.13.6.Using Logical Operators
23.13.7.Checking Operator Precedence