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 Answers
+ 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