Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace if_else_exercise
- {
- class Program
- {
- static void Main(string[] args)
- {
- int time1 = int.Parse(Console.ReadLine());
- int time2 = int.Parse(Console.ReadLine());
- int time3 = int.Parse(Console.ReadLine());
- int allTime = time1 + time2 + time3;
- int allTimeInMinutes = allTime / 60;
- int seconds= allTime % 60;
- Console.WriteLine($"{allTimeInMinutes}:{seconds:D2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement