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 ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- int firstTime = int.Parse(Console.ReadLine());
- int secondTime = int.Parse(Console.ReadLine());
- int thurdTime = int.Parse(Console.ReadLine());
- int sum = firstTime + secondTime + thurdTime;
- int minutes = sum / 60;
- int seconds = sum % 60;
- Console.WriteLine("{0}:{1:00}", minutes, seconds);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment