import java.util.*;
public class Aplicubo
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int ll;
double v;
System.out.println("Teclea el valor del lado" + "\t");
ll = sc.nextInt();
cubo e1 = new cubo();
e1.set_lado(ll);
v=e1.calc_volumen();
System.out.println("El volumen es: "+v);
} // del main
} // de la clase
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.