While "Console.ReadLine" command needs input, my program doesn't requires any. How to insert my input then? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

While "Console.ReadLine" command needs input, my program doesn't requires any. How to insert my input then?

22nd Sep 2020, 10:33 AM
Ali Barmaki
Ali Barmaki - avatar
2 Respostas
+ 5
I don't know why, but Console.ReadLine() works while Console.ReadLine () doesn't. The difference is the space between parentheses and the name.
22nd Sep 2020, 10:39 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 2
The code was executed without any problemsšŸ¤”, note that SoloLearn requests variables before execution!! I recommend running your program in visual studio
22nd Sep 2020, 11:26 AM
hossein B
hossein B - avatar