C# C# Basics Methods Defining a Method


using System;

class Program

    static void Spell();
    Console.WriteLine(c)// YOUR CODE HERE: Define a method named Spell. Remember to use the
    // "static" and "void" keywords: "static void Spell" (without quotes)...

    public static void Spell(string[] args)

1 Answer

Steven Parker
Steven Parker
185,871 Points

Here's a few hints:

  • don't change the "Main" method
  • you won't need a semicolon after the declaration of "Spell"
  • BUT, after you declare "Spell", give it a body block enclosed in braces
  • the instructions give you the code for the body — just copy and paste that part in