Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scanner = new.scanner (System.in());
- double b1 = Double.parseDouble(scanner.nextLine());
- double b2 = Double.parseDouble(scanner.nextLine());
- double h = Double.parseDouble(scanner.nextLine());
- double area = (b1 + b2) * h / 2.0;
- System.out.println(area);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement