Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. namespace Ladybugs
  3. {
  4.     public class Ladybugs
  5.     {
  6.         public static void Main()
  7.         {
  8.             string inputDate = Console.ReadLine();
  9.             int steepHome = int.Parse(Console.ReadLine())% 86400;
  10.             int sekSteep = int.Parse(Console.ReadLine())% 86400;
  11.  
  12.             DateTime currentDate = DateTime.Parse(inputDate);
  13.             long sumMinSek = steepHome * sekSteep;
  14.             currentDate = currentDate.AddSeconds(sumMinSek);
  15.             string output = currentDate.TimeOfDay.ToString();
  16.             Console.WriteLine($"Time Arrival: {output}");
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement