Why this code is showing error? | SoloLearn: Learn to code for FREE!

+3

Why this code is showing error?

https://code.sololearn.com/c0PYhaSvhh1m/?ref=app

c#

5/28/2020 11:05:24 AM

👑FabVAB👑

3 Answers

New Answer

+6

On lines 15, 17, and 19 change Readline to ReadLine. Notice the capital L. You're also using ReadLine to get each input so, when using SoloLearn, you'll need to pass in input in the initial dialog like this: 2<press enter> +<press enter> 2<press enter> Just for clarity, don't actually type out "<press enter>".

0

You can write that code into c# visual studio and your code it is going to run fine, when you use SoloLearn, put the values in the code or write each one in separated lines. ;-)