Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- DateTime oldDate = new DateTime(2015,04,28);
- DateTime newDate = DateTime.Now;
- TimeSpan ts = oldDate - newDate ;
- int differenceInDays = ts.Days;
- string name = (Console.ReadLine());
- Console.WriteLine("{0}, you have only {1} days to apply for the spring semester at Software University!"
- ,name,Convert.ToString(differenceInDays,2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement