0

Gotham City C#

Hey y’all, I’m very new to coding. I’m doing the Gotham city project in code coach and again I’m running into an issue with failing hidden test cases. The idea is to decide wether or not you need the help of a superhero depending on the number of criminals there are. If anyone is familiar with the project, I’d greatly appreciate someone spotting the issue with my code. I put the code into the playground and tried to locate the issue myself but it seems to run correctly there. Thank you in advance for any help! static void Main(string[] args) { int c; c = Convert.ToInt32(Console.ReadLine()); if (c < 5) { Console.WriteLine("I got this!"); } else if (c >= 5 && c <= 10) { Console.WriteLine("Help me Batman"); } else if (c >= 11) { Console.WriteLine("Good luck out there!"); } } } }

8th Jan 2021, 2:12 PM
Tee
Tee - avatar
2 odpowiedzi
+ 7
Just a small bug "Good luck out there!" should be "Good Luck out there!"
8th Jan 2021, 2:16 PM
noteve
noteve - avatar
+ 2
《 Nicko12 》 oh gosh, HA. Thank you so much 😅
8th Jan 2021, 2:29 PM
Tee
Tee - avatar