Advertisement
Guest User

Untitled

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