ublic class Ejercicio20 { public static void main(String[] args) { int se, h; double m, hr,s; Scanner leer=new Scanner(System.in); System.out.println("Digite el numero de segundos"); se=leer.nextInt(); hr=se/3600; h=(int) hr; m=(int) ((hr-h)*60); s=((hr-h)*60-m)*60; System.out.println("El valor "+se+" equivale a "+h+" horas " +m+" minutos "+s+" segundos");
public class Ejercicio20 { public static void main(String[] args) { int se, h; double m, hr,s; Scanner leer=new Scanner(System.in); System.out.println("Digite el numero de segundos"); se=leer.nextInt(); hr=se/3600; h=(int) hr; m=(int) ((hr-h)*60); s=((hr-h)*60-m)*60; System.out.println("El valor "+se+" equivale a "+h+" horas " +m+" minutos "+s+" segundos"); } } ## 1.1.0 * Added `.travis.yml` to automatically run tests with TravisCI ## 1.0.0 * The first proper release * Refactored `add()` and `subtract()` ## 0.0.1 * Work in progress