Advertisement
-Annie-

01.Expression

Aug 6th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         double val = (30 + 21) * 0.5 * (35 - 12 - 0.5);
  7.         double sqrVal = Math.pow(val, 2);
  8.         System.out.println(sqrVal);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement