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