+ 3

Challenge 9

Spot the error and correct this code. https://code.sololearn.com/cvh089b8izD0/?ref=app This seems a bit easy so at first I allow only Players who are not gold or platinum yet. That means below lv10. Since the Challenge is already won, I am not increasing the level restrictions...

21st Jul 2017, 3:27 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
3 odpowiedzi
+ 5
You need to convert the input from string to int. So instead of just Console.ReadLine() you need to use: Convert.ToInt32(Console.ReadLine())
21st Jul 2017, 3:46 PM
Jonas Geiler
Jonas Geiler - avatar
+ 2
I don't do c# but the error was quite obvious. At this line DrawPyramid(Console.ReadLine()); you have to pass the parameter as an integer, so convert Console.ReadLine() to ant integer.
21st Jul 2017, 4:07 PM
CADET CYUZUZO
CADET CYUZUZO - avatar
+ 2
*Cries* I literally just got gold
21st Jul 2017, 4:22 PM
Limitless
Limitless - avatar