06.- AREA Y PERIMETRO DE UN CUADRADO
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package problema16;
import java.io.*;
/**
*
* @author abel montalvan
*/
public class Problema16 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
int lado =5;
int perimetro;
double area;
perimetro= 5*4;
area= Math.pow(lado,2);
System.out.println("");
System.out.println("El perímetro del cuadrado de lado " +lado+" es "+perimetro+" y su área es "+area);
// TODO code application logic here
}
}
// TODO code application logic here
No hay comentarios:
Publicar un comentario