Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*Метода AddDays() променя само деня към цялата дата, а .Day слага само деня*/
- class NextDate
- {
- static void Main()
- {
- int day = int.Parse(Console.ReadLine());
- int month = int.Parse(Console.ReadLine());
- int year = int.Parse(Console.ReadLine());
- DateTime currentDate = new DateTime(year,month,day);
- currentDate = currentDate.AddDays(1);
- Console.WriteLine(currentDate.Day + "." + currentDate.Month + "." +
- currentDate.Year);//по този начин долепяме датите
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment