Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _03.Time_15Minutes
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int hourss = int.Parse(Console.ReadLine());
- int minutess = int.Parse(Console.ReadLine());
- minutess += 15;
- if (minutess >= 60)
- {
- minutess -= 60;
- hourss += 1;
- }
- if (hourss == 24)
- {
- hourss = 0;
- }
- Console.WriteLine($"{hourss}:{minutess:D2}");
- }
- }
- }
Add Comment
Please, Sign In to add comment