alex-md
9/22/2016 - 8:27 PM

Display favorite class using one parameter, no returns, call the favoriteClass method twice

Display favorite class using one parameter, no returns, call the favoriteClass method twice

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            DisplayFavoriteClass("ism220");
            DisplayFavoriteClass("Anything with Cornell Notes");
            
            Console.ReadKey();
        }

        static void DisplayFavoriteClass(string favoriteClass)
       {
            Console.WriteLine("{0} is my favorite class", favoriteClass);
       
        }

    }
}