fbinnzhivko

Untitled

Jan 25th, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. using System;
  2.  
  3. class Class1
  4. {
  5.     static void Main()
  6.     {
  7.         DateTime bitrhday = DateTime.ParseExact(Console.ReadLine(), "dd-MM-yyyy", null);
  8.         DateTime answer = bitrhday.AddDays(999);
  9.         Console.WriteLine("{0:dd-MM-yyyy}", answer);
  10.     }
  11. }
Add Comment
Please, Sign In to add comment