Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace NextDate
- {
- class NextDate
- {
- static void Main(string[] args)
- {
- int day = int.Parse(Console.ReadLine());
- int month = int.Parse(Console.ReadLine());
- int year = int.Parse(Console.ReadLine());
- DateTime dateNow = new DateTime(year, month, day);
- dateNow = dateNow.AddDays(1);
- Console.WriteLine("{0:d.M.yyyy}",dateNow);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment