using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { //new methods go here. public static void firstMethod() { Console.WriteLine("This is my first method!"); } public static bool isAdult(int age) { if (age > 21) { Console.WriteLine("You are an adult"); return true; } else return false; } public static int calculateProduct(int numOne, int numTwo) { /* int product = 0; product = numOne * numTwo; return product; */ return numOne * numTwo; } public static string enterName() { Console.WriteLine("Enter your name"); string name = Console.ReadLine(); return name; } static void Main(string[] args) { firstMethod(); Console.WriteLine("This message is from Main."); Console.WriteLine("Enter your age"); int age = Convert.ToInt32(Console.ReadLine()); bool oldEnough = isAdult(age); Console.WriteLine("The value in oldEnough is " + oldEnough); int result = calculateProduct(3, 4); Console.WriteLine("The Result is " + result); string userName = enterName(); Console.WriteLine("The user's name is " + userName); } } }