Ley gravitatoria aplicacion

import java.util.Scanner; public class Apliley { public static void main (String [] args) { Scanner sc=new Scanner (System.in); double mm1,mm2,dd; leygravitacion junior=new leygravitacion(); System.out.println("Teclea la cantidad de la masa 1"); mm1=sc.nextDouble(); System.out.println("Teclea la cantidad de la masa 2"); mm2=sc.nextDouble(); System.out.println("Teclea la cantidad de la distancia"); dd=sc.nextDouble(); junior.set_m1(mm1); junior.set_m2(mm2); junior.set_d(dd); System.out.println("Fuerza Gravitacional= "+junior.calc_fza()); } }

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.