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 HW1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string hours = Console.ReadLine();
- string minutes = Console.ReadLine();
- string hm = hours + ':' + minutes;
- var time = Convert.ToDateTime(hm);
- string inThirty = time.AddMinutes(30).ToString("H:mm");
- Console.WriteLine(inThirty);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement