/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package propuesta7;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author User
*/
public class PROPUESTA7 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// TODO code application logic here
int MINUTO=60;
int SEGUNDO=3600;
int c,m,s;
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Cantidad de horas: ");
c=Integer.parseInt(in.readLine());//ojo
m=(c * MINUTO);
s=(c % MINUTO)-c;
c=(s * SEGUNDO);
c=(s % SEGUNDO);
System.out.println("");
System.out.println("Minutos:" + m);
System.out.println("Segundos:" + s);
System.out.println();
}
}
No hay comentarios:
Publicar un comentario