Untitled

 avatar
unknown
plain_text
2 years ago
734 B
4
Indexable
import java.util.Scanner;

public class Main
{
	public static void main(String[] args) {
	    Scanner scanner = new Scanner(System.in);
	    int hoursExam = Integer.parseInt(scanner.nextLine());
	    int minutesExam = Integer.parseInt(scanner.nextLine());
	    int hoursArrival = Integer.parseInt(scanner.nextLine());
	    int minutesArrival = Integer.parseInt(scanner.nextLine());
	    
	    
	    int secondsExam = hoursExam * 3600 + minutesExam * 60;
	    int secondsArival = hoursArrival * 3600 + minutesArrival * 60
	    int secondsDifference = secondsExam - secondsArival;
	    int resultMinutes = 0;
	    int resultHours = 0;
	    
	    
	    if (secondsDifference > 60) {
	        resultMinutes = 
	        
	    }
	    
	}
}
Editor is loading...