Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class T10 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- Double B1 = Double.parseDouble(scanner.nextLine());
- Double B2 = Double.parseDouble(scanner.nextLine());
- Double H1 = Double.parseDouble(scanner.nextLine());
- Double Formule = (B1 + B2) * H1 / 2;
- System.out.printf( "%.2f",Formule);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement