Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 013, Chapter 2.0
- using System;
- using System.Globalization;
- public class ThousandDaysAfterBirth
- {
- static void Main()
- {
- string date = Console.ReadLine();
- DateTime dt = DateTime.ParseExact(date, "dd-MM-yyyy", CultureInfo.InvariantCulture);
- dt = dt.AddDays(1000);
- Console.WriteLine(dt.ToString("dd-MM-yyyy"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment