archangelmihail

NextDate

Nov 27th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace NextDate
  8. {
  9.     class NextDate
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int day = int.Parse(Console.ReadLine());
  14.             int month = int.Parse(Console.ReadLine());
  15.             int year = int.Parse(Console.ReadLine());
  16.             DateTime dateNow = new DateTime(year, month, day);
  17.             dateNow = dateNow.AddDays(1);
  18.             Console.WriteLine("{0:d.M.yyyy}",dateNow);
  19.  
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment