Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class DateAfter5Days
- {
- static void Main()
- {
- string day = Console.ReadLine();
- string month = Console.ReadLine();
- DateTime today= DateTime.ParseExact(day + "-" + month + "-"
- + "2001", "d-M-yyyy", null);
- DateTime dayAfter5Days = today.AddDays(5);
- Console.WriteLine("{0:d.MM}", dayAfter5Days);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment