Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Globalization;
- namespace _1000_Days_After_Birth
- {
- class Program
- {
- static void Main(string[] args)
- {
- string BirthDate = Console.ReadLine();
- string format = "dd-MM-yyyy";
- DateTime time = DateTime.ParseExact(BirthDate, format, System.Globalization.CultureInfo.InvariantCulture);
- Console.WriteLine(time.AddDays(999).ToString(format));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment