Nikolay_Kashev

Дата след 5 дни

Feb 18th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2. namespace Date_After_5_Days
  3. {
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. int d = int.Parse(Console.ReadLine());
  9. int m = int.Parse(Console.ReadLine());
  10. var date = new DateTime(2020, m, d);
  11. date = date.AddDays(5);
  12.  
  13. var day = date.Day.ToString("0");
  14. var month = date.Month.ToString("00");
  15.  
  16. Console.WriteLine("{0}.{1}", day, month);
  17.  
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment