using System;
public class Program
{
public static void Main()
// Function - A code block that contains a series
// of statements. A program causes the statements
// To be exucuted by calling the function
// and specifying anya required parameters.
// void function a function that does NOT have a
// return value.
// function type - the type of value the function
// returns
// function name - The name you call the function
// parameter - Information that is passed into functions
// A parameter acts as a variable inside a function
greeting("Cole");
greeting("John");
void greeting(String name)
Console.WriteLine("Hello " + name);
}
// name is not valid. You cannot use name here. :(
//TEACHER'S COMMENT:
//Put your function outside of the main function scope
//Put "public static" before the return type.
//Example below:
//public static void greeting(String name) { /* Your code goes here */ }