Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
749
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         var first = int.Parse(Console.ReadLine());
  8.         var second = int.Parse(Console.ReadLine());
  9.         var third = int.Parse(Console.ReadLine());
  10.  
  11.         var secondsSum = first + second + third;
  12.         var minutes = secondsSum / 60;
  13.         var seconds = secondsSum % 60;
  14.  
  15.         Console.WriteLine("{0:0}:{1:00}", minutes, seconds);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement