I guess you mean that the user puts in the values and the program calculates it?




System.out.print("Potencial energy (" + m*g*h + ") + kinetic energy (" + m*v*v + ") = " + m*g*h + m*v*v + "...