Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class NextDate
- {
- static void Main()
- {
- byte day = byte.Parse(Console.ReadLine());
- byte month = byte.Parse(Console.ReadLine());
- ushort year = ushort.Parse(Console.ReadLine());
- DateTime enteredDate = new DateTime(year, month, day);
- DateTime newDate = enteredDate.AddDays(1);
- Console.WriteLine("{0}.{1}.{2}", newDate.Day, newDate.Month, newDate.Year);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment