string borderLine = "______________________________________________" + "\n";
int multiplySumAndDifference(int a, int b, int c, int d)
return (a + b) * (c - d);
Console.WriteLine( multiplySumAndDifference(1, 2, 3, 4) );
Console.WriteLine( multiplySumAndDifference(6, 0, 4, 7) );
Console.WriteLine( multiplySumAndDifference(3, 1, 7, 2) );
Console.WriteLine(borderLine);
void oldEnoughToVoteOrDrink()
Console.WriteLine("What is your name?");
string name = Console.ReadLine();
Console.WriteLine("What is your age?");
int age = int.Parse(Console.ReadLine());
if (age < 18) { Console.WriteLine("\n" + "My name is " + name + " and I am too young to vote or drink."); }
else if (age >= 21) { Console.WriteLine("\n" + "My name is " + name + " and I am old enough to vote or drink."); }
else if (age >= 18 || age < 21) { Console.WriteLine("\n" + "My name is " + name + " and I am old enough to vote, but not yet old enough to drink."); }
oldEnoughToVoteOrDrink();
Console.WriteLine(borderLine);
string date = System.DateTime.Now.ToLongDateString();
Console.WriteLine("\n" + "The date is currently: " + getCurrentDate());