Primitive Operators Java
Students are given homework in math, history, and geometry. Write a program that takes the time spent on each subject as input, and calculates and outputs the total number of hours and minutes spent on each subject, each on a new line accordingly. Sample Input 35 40 39 Sample Output 1 54 Explanation The total amount of spent minutes is 114, which is equal to 1 hour (the first output) and 54 minutes (the second output). The explanation does not match the problem given. The problem states in summary (correct me if Iâm wrong) Take 3 separate values as input for the 3 subjects respectively and then print each value out on a separate line for each subject. The sample output shows only two lines as output but not 3. Iâm am seriously confused.