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_15_Minutes
- {
- class Program
- {
- static void Main(string[] args)
- {
- int hours = int.Parse(Console.ReadLine());
- int mins = int.Parse(Console.ReadLine());
- mins = hours*60+mins+15;
- hours = mins / 60;
- mins = mins % 60;
- if (hours == 24)
- {
- hours = 0;
- }
- Console.WriteLine("{0}:{1:D2}", hours, mins);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement