Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics Methods Defining a Method

Jourdan Dixon
Jourdan Dixon
4,752 Points

Here is the code I have for this quiz but it is telling me here is an error. using System; class Program st cs1513

I am trying to figure out what I am doing wrong but I am completely stuck. Please let me know what I did wrong.

Program.cs
using System;

class Program
    static void Spell()
{
        Console.WriteLine("c");
        Console.WriteLine("a");
        Console.WriteLine("t");
}
    static void Main(string[] args)
    {
        Spell();
    }

2 Answers

Steven Parker
Steven Parker
229,732 Points

The new method is good. :+1:

But somehow, the braces that enclose the entire class (Program) got removed. Put them back and this will pass.