import java.util.Scanner;
public class Aplienergia
{
public static void main (String [] args)
{
Scanner sc=new Scanner (System.in);
double mm;
energia e1=new energia();
System.out.println("Teclea la cantidad de la masa ");
mm=sc.nextDouble();
e1.set_masa(mm);
System.out.println("La energia es= "+e1.calc_ener());
}
}
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.