Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Test
- {
- class TimePlus15Minutes
- {
- static void Main()
- {
- int hours = int.Parse(Console.ReadLine());
- int min = int.Parse(Console.ReadLine());
- TimeSpan tms = new TimeSpan(hours , min + 15 , 0);
- Console.WriteLine("{0:%h}:{0:mm}", tms);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement