Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
915
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using System;
  2.  
  3. class SumSecondsNew
  4. {
  5. static void Main()
  6. {
  7. int firstTime = int.Parse(Console.ReadLine());
  8. int secondTime = int.Parse(Console.ReadLine());
  9. int thirdTime = int.Parse(Console.ReadLine());
  10.  
  11. int fullTime = firstTime + secondTime + thirdTime;
  12. int minutes = fullTime / 60;
  13. int seconds = fullTime % 60;
  14.  
  15. Console.WriteLine("{0}:{1:00}", minutes, seconds);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement