+ 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
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?
+ 3
Missing semicolon on line 28.
+ 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.
+ 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.
+ 1
oh thx, changed it but still no luck. "looks like your program needs input"
+ 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
0
Well, give it input then? I don't recall visual studio giving such a message. Are we still talking about visual studio?
0
i was talking about the code playground, isnt working in sololearn but in visual studio it runs flawless
0
oh ok thank you
0
makes sense. works now thanks!