Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int hours=int.Parse(Console.ReadLine());
- int minutes=int.Parse(Console.ReadLine());
- TimeSpan ts=new TimeSpan(hours,minutes,0);
- TimeSpan tsAdd=new TimeSpan(0,15,0);
- ts+=tsAdd;
- Console.WriteLine(ts.ToString(@"hh\:mm"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement