Code Coach Cheer Creator question
Hey y’all, I’m very new to coding and I was doing some of the projects in Code Coach to practice. I did the Cheer Creator project and thought I had it figured out but the result didn’t pass all the test cases. Unfortunately the test cases that the code didn’t pass were hidden. So I copied the code and pasted it into the code playground to see and check the output myself and I’m confused because it seems to be working properly. I tried a variety of inputs but it seems to work just fine. So I was wondering if anyone would be familiar with the project mentioned and might be able to spot the issue for me? Also I realize my code may not be the most efficient way to achieve its result. I just really wanted to figure it out without looking it up completely for once so I believe I took a longer route lol. But I am interested in learning a more efficient way to code this project if anyone has any input on that or any tips at all really. Thank you! { static void Main(string[] args) { int yards; yards = Convert.ToInt32(Console.ReadLine()); switch (yards) { case 0: Console.WriteLine("shh"); break; case 1: Console.WriteLine("Ra!"); break; case 2: Console.WriteLine("Ra!Ra!"); break; case 3: Console.WriteLine("Ra!Ra!Ra!"); break; case 4: Console.WriteLine("Ra!Ra!Ra!Ra!"); break; case 5: Console.WriteLine("Ra!Ra!Ra!Ra!Ra!"); break; case 6: Console.WriteLine("Ra!Ra!Ra!Ra!Ra!Ra!"); break; case 7: Console.WriteLine("Ra!Ra!Ra!Ra!Ra!Ra!Ra!"); break; case 8: Console.WriteLine("Ra!Ra!Ra!Ra!Ra!Ra!Ra!Ra!"); break; case 9: Console.WriteLine("Ra!Ra!Ra!Ra!Ra!Ra!Ra!Ra!Ra!"); break; case 10: Console.WriteLine("High five!"); break; default: Console.WriteLine("High five!"); break; } } } }