/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package area_de_un_pentagono;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 //Kevin Flores Pamatz
 * //22-oct-2012
 */
public class Main {
    private static double and;
   // private static double perimetro;
   // private static double altura;

    /**
     * //este programa nos va a permitir calcular el area de un pentagono
     */
    public static void main(String[] args) throws IOException {
        //
         InputStreamReader isr= new InputStreamReader (System.in);
        BufferedReader br = new BufferedReader (isr);

        double area= 0,perimetro,altura;
        System.out.println("Ingresar el valor del perimetro:");
        perimetro = Double.parseDouble (br.readLine());
        System.out.println("inrese el valor de la altura");
                altura= Double.parseDouble (br.readLine());
        area= perimetro*altura / 2;
        System.out.println("el area de su pentagono es...." + area);
    }

}
