Please help me with the task: "Swear you are a member of resistance"

Hello, I’m working on this task:

Create string variable iSwear with value “I am a member of the resistance” and output it 5 times every time from the new line.

Here is my code:


public class SwearYouAreMemberOfResistance
{
   public static void Main(string[] args)

   
string iSwear = "I am a member of the resistanceng";

Console.WriteLine(iSwear);
Console.WriteLine(iSwear);
Console.WriteLine(iSwear);
Console.WriteLine(iSwear);
Console.WriteLine(iSwear);

   }
}

Can anyone please help me to solve it?

i copy this code on viisual studio and it works just fine
but in codeeasy it show error about string

Hi Siddhart, welcome to Codeasy!

I see that the string that you print has a few redundant symbols in the end:

I am a member of the resistanceng

Can you try deleting them?

Another problem that I see is no opening bracket after the method start, it should be like this:

public static void Main(string[] args)
{ <-- this bracket is missing in your code