Advertisement
veronikaaa86

RectangleArea

Sep 11th, 2017
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class RectangleArea {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.         double a = Double.parseDouble(scan.nextLine());
  7.         double b = Double.parseDouble(scan.nextLine());
  8.  
  9.         double area = a*b;
  10.         System.out.print(area);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement