Advertisement
ivanov_ivan

TimePlus15Minutes

Jan 31st, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Test
  9. {
  10.     class TimePlus15Minutes
  11.     {
  12.         static void Main()
  13.         {
  14.             int hours = int.Parse(Console.ReadLine());
  15.             int min = int.Parse(Console.ReadLine());
  16.             TimeSpan tms = new TimeSpan(hours , min + 15 , 0);
  17.             Console.WriteLine("{0:%h}:{0:mm}", tms);
  18.         }    
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement