double addUp(int a, int b)
System.Console.WriteLine("- ++ " + addUp(5, 5) + " + " + addUp(18, 2) + " ++ -----" );
System.Console.WriteLine("--- ++ " + addUp(10, 20) + " + " + addUp(11, 29) + " ++ ---" );
System.Console.WriteLine("----- ++ " + addUp(23, 27) + " + " + addUp(32, 28) + " ++ -" );
System.Console.WriteLine();
void oldEnoughToRentCar()
System.Console.WriteLine("What is your name?: ");
string name = System.Console.ReadLine();
System.Console.WriteLine("How old are you?: ");
int age = int.Parse(Console.ReadLine());
System.Console.WriteLine("My name is " + name + " and I am old enough to rent a car.");
System.Console.WriteLine("My name is " + name + " and I am NOT old enough to rent a car.");
System.Console.WriteLine("==== ==== ==== ==== ==== ==== ==== ==== ==== ====");
System.Console.WriteLine();
System.Console.WriteLine("...and next I used the parameters to define and show output:");
void oldEnoughToRentCar(string name, int age)
System.Console.WriteLine("My name is " + name + " and I am old enough to rent a car.");
System.Console.WriteLine("My name is " + name + " and I am NOT old enough to rent a car.");
oldEnoughToRentCar("Dave", 16);
System.Console.WriteLine();
oldEnoughToRentCar("Dave", 24);
System.Console.WriteLine();
oldEnoughToRentCar("Dave", 38);
System.Console.WriteLine();