/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package area.de.un.cuadrado;
import java.util.Scanner;
/**
*
* @author Briyith_Far
*/
public class AreaDeUnCuadrado {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
double area;
Scanner sc=new Scanner(System.in);
System.out.println("ingrese el lado de cuadrado");
double a=sc.nextDouble();
area=a*a;
System.out.println("El área del cuadrado es: " + area);
}
}
No hay comentarios:
Publicar un comentario