
원래도 집중력이 좋지않던 나는 백준을 풀다가 곧 내 생일을 맞아 내가 태어난지 얼마나 됐는지 궁금해졌다. 그래서 내가 태어난 일 수와 개월 수를 구현해봤다. [ 코드 ] using System.Globalization; Console.Write("이름: "); string name = Console.ReadLine(); Console.Write("생일 (예시 2000-01-01): "); string birth = Console.ReadLine(); if (DateTime.TryParseExact(birth, "yyyy-MM-dd", null, DateTimeStyles.None, out DateTime birthDate)) { TimeSpan age = DateTime.Now - birthDate; i..