Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Ladybugs
- {
- public class Ladybugs
- {
- public static void Main()
- {
- string inputDate = Console.ReadLine();
- int steepHome = int.Parse(Console.ReadLine())% 86400;
- int sekSteep = int.Parse(Console.ReadLine())% 86400;
- DateTime currentDate = DateTime.Parse(inputDate);
- long sumMinSek = steepHome * sekSteep;
- currentDate = currentDate.AddSeconds(sumMinSek);
- string output = currentDate.TimeOfDay.ToString();
- Console.WriteLine($"Time Arrival: {output}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement