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 Sum_Seconds
- {
- class Program
- {
- static void Main(string[] args)
- {
- var first = double.Parse(Console.ReadLine());
- var second = double.Parse(Console.ReadLine());
- var third = double.Parse(Console.ReadLine());
- var score = first + second + third;
- var minutes = score / 60;
- var seconds = score % 2;
- if(score <= 59)
- {
- minutes = 0;
- seconds = score;
- }
- else if(score > 60 && score < 119)
- {
- minutes = 1;
- seconds = score - 60;
- }
- else if(score > 120 && score < 179)
- {
- minutes = 2;
- seconds = score - 120;
- }
- else if ( seconds < 10)
- {
- { 0:00};
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement