Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void hora(){
- int hort=0,hor=0;
- System.out.println("Ingrese la hora en la cual debe de llegar los trabajadores: ");
- hor=entrada.nextInt();
- for(i=0;i<numtrabajadores;i++){
- System.out.println("Ingrese la hora en que el trabajador ha llegado: ");
- hort=entrada.nextInt();
- if(hort>hor){
- System.out.println("El trabajador no ha llegado a la hora");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment