Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace time
- {
- class Program
- {
- static void Main(string[] args)
- {
- int hour = int.Parse(Console.ReadLine());
- int min = int.Parse(Console.ReadLine());
- int min15 = min+15;
- if (min15 > 59)
- {
- hour += 1;
- min15 -= 60;
- }
- else
- {
- }
- if (hour == 24)
- {
- hour = 0;
- }
- else
- {
- }
- Console.WriteLine("{0}:{1}", hour.ToString("0"), min15.ToString("00"));
- }
- }
- }
Add Comment
Please, Sign In to add comment