Advertisement
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_15min
- {
- class Program
- {
- static void Main(string[] args)
- {
- var hour = double.Parse(Console.ReadLine());
- var min = double.Parse(Console.ReadLine());
- var minplus15 = min + 15;
- if (minplus15 > 59)
- {
- minplus15 -= 60;
- hour += 1;
- }
- if (hour == 24)
- {
- hour = 0;
- }
- Console.WriteLine("{0}:{1:00}", hour, minplus15);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement