vstoyanov

Оператори и Изрази 5

May 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import org.omg.Messaging.SYNC_WITH_TRANSPORT;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner scanner=new Scanner (System.in);
  9.  
  10.  
  11.            Double length=Double.parseDouble(scanner.nextLine());
  12.            Double height=Double.parseDouble(scanner.nextLine());
  13.  
  14.            double parameter=2*length+2*height;
  15.            double square=length*height;
  16.         System.out.println(parameter);
  17.         System.out.println(square);
  18.  
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment