What will the given code snippet specify?class MyClass{    char chrs = 'A' ;    public IEnumerator GetEnumerator()    {        for (int i = 20; i >=0; --i)        if (i == 10) yield break;        yield return (char)((chrs + i));    }}class Program{    static void Main(string[] args)    {        MyClass mc = new MyClass();        foreach (char ch in mc)        Console.Write(ch + " ");        Console.WriteLine();        Console.ReadLine();    }}

Comments and Answers (2)

Andy

Andy

What is the correct solution?

Andy

Andy

What is the correct solution?

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}