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