Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Project: Simple_Conditions - created by borkins on 2017-03-25.
- */
- import java.util.Scanner;
- public class _14_TimePlus_15_Minutes
- {
- public static void main(String[] args)
- {
- Scanner console = new Scanner(System.in);
- int hours = Integer.parseInt(console.nextLine());
- int minutes = Integer.parseInt(console.nextLine());
- minutes += 15;
- System.out.printf("%d:%02d", ((hours + (minutes / 60)) % 24), (minutes % 60));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment