Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace DaysOnEarth
- {
- class DaysOnEarth
- {
- static void Main(string[] args)
- {
- DateTime date = DateTime.ParseExact(Console.ReadLine(), "dd-MM-yyyy", null);
- date = date.AddDays(1000 - 1);
- Console.WriteLine(date.ToString ("dd-MM-yyyy"));
- }
- }
- }
Add Comment
Please, Sign In to add comment