+ 1

Why isnt this working here but in Visual Studio?

Why isnt this working here but in Visual Studio? I really dont know what is the problem here. https://code.sololearn.com/c8WcKXTR3prO/?ref=app

9th Sep 2018, 7:55 PM
Cica
10 Respostas
+ 6
Why do you declare the variable alter (age) as long? Do you know many people that are 9,223,372,036,854,775,807 years old?
9th Sep 2018, 8:37 PM
Anna
Anna - avatar
+ 3
Missing semicolon on line 28.
9th Sep 2018, 7:59 PM
Dennis
Dennis - avatar
+ 3
"Looks like your program needs input" Is what you want !! This is how the sololearn server works. It needs all input up front and will send you the results when the code has been processed. Fill in the following text including carriage return in the box. Peter 4 And the code works perfect Do comment out Console.ReadKey also you do not need it on the sololearn server and it gives an error.
9th Sep 2018, 8:18 PM
sneeze
sneeze - avatar
+ 2
Well, in the playground you have to enter the input before the program runs. This is because the server cannot handle input while it is running. Because the server uses ( probably ) a file and redirects this to the program, Console.ReadKey(); does not work.
9th Sep 2018, 8:11 PM
Dennis
Dennis - avatar
+ 1
oh thx, changed it but still no luck. "looks like your program needs input"
9th Sep 2018, 8:03 PM
Cica
+ 1
no but it was crashing when typing in big numbers and still is if i dont enter numbers. i just started i will quickly find a solution to that i hope :D
9th Sep 2018, 9:20 PM
Cica
0
Well, give it input then? I don't recall visual studio giving such a message. Are we still talking about visual studio?
9th Sep 2018, 8:07 PM
Dennis
Dennis - avatar
0
i was talking about the code playground, isnt working in sololearn but in visual studio it runs flawless
9th Sep 2018, 8:08 PM
Cica
0
oh ok thank you
9th Sep 2018, 8:11 PM
Cica
0
makes sense. works now thanks!
9th Sep 2018, 8:20 PM
Cica