// Directions: Intermediate #1-2
// 1) Fork this to your account.
// 2) Add code to the Main method:
// a) Add a DateTime variable for someone's birthday. Assign a value to it.
// b) Add an if block to determine if the person is of the legal drinking age in Wisconsin (21) utilizing DateTime.Now.
// c) WriteLine an appropriate message.
// 3) August 28th, 2001 is under the legal drinking age and August 27th, 2001 is over the legal age.
// 4) Submit your dotnetfiddle link in Blackboard.
using System;
public class Program
{
public static void Main()
DateTime dob = new DateTime(1988, 5, 10); //DOB
DateTime today = DateTime.Now; // current date
int age = today.Year - dob.Year; //age in years
if(age>= 21)
Console.WriteLine("Legal age for alcohol in WI");
else
Console.WriteLine("Not legal age for alcohol in WI");
}